File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1515
1616from __future__ import print_function
1717
18- from collections import Mapping
1918import inspect
2019import os
2120import re
2928 from SimpleXMLRPCServer import SimpleXMLRPCServer
3029 from StringIO import StringIO
3130 from xmlrpclib import Binary , ServerProxy
31+ from collections import Mapping
3232 PY2 , PY3 = True , False
3333else :
3434 from io import StringIO
3535 from xmlrpc .client import Binary , ServerProxy
3636 from xmlrpc .server import SimpleXMLRPCServer
37+ from collections .abc import Mapping
3738 PY2 , PY3 = False , True
3839 unicode = str
3940 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
27
38
49class Returning (object ):
You can’t perform that action at this time.
0 commit comments