Commit e625c74 1 parent 5324821 commit e625c74 Copy full SHA for e625c74
File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 15
15
16
16
from __future__ import print_function
17
17
18
- from collections import Mapping
19
18
import inspect
20
19
import os
21
20
import re
29
28
from SimpleXMLRPCServer import SimpleXMLRPCServer
30
29
from StringIO import StringIO
31
30
from xmlrpclib import Binary , ServerProxy
31
+ from collections import Mapping
32
32
PY2 , PY3 = True , False
33
33
else :
34
34
from io import StringIO
35
35
from xmlrpc .client import Binary , ServerProxy
36
36
from xmlrpc .server import SimpleXMLRPCServer
37
+ from collections .abc import Mapping
37
38
PY2 , PY3 = False , True
38
39
unicode = str
39
40
long = int
Original file line number Diff line number Diff line change 1
- from collections import Mapping
1
+ import sys
2
+
3
+ if sys .version_info < (3 ,):
4
+ from collections import Mapping
5
+ else :
6
+ from collections .abc import Mapping
2
7
3
8
4
9
class Returning (object ):
You can’t perform that action at this time.
0 commit comments