Lines Matching +full:py3 +full:- +full:six
1 # Copyright (c) 2010-2017 Benjamin Peterson
37 PY3 = sys.version_info[0] == 3 variable
40 if PY3:
57 MAXSIZE = int((1 << 31) - 1)
67 # 32-bit
68 MAXSIZE = int((1 << 31) - 1)
70 # 64-bit
71 MAXSIZE = int((1 << 63) - 1)
107 if PY3:
143 if PY3:
167 A meta path importer to import six.moves and its submodules.
324 """Lazy loading of moved objects in six.moves.urllib_parse"""
366 """Lazy loading of moved objects in six.moves.urllib_error"""
386 """Lazy loading of moved objects in six.moves.urllib_request"""
438 """Lazy loading of moved objects in six.moves.urllib_response"""
459 """Lazy loading of moved objects in six.moves.urllib_robotparser"""
477 """Create a six.moves.urllib namespace that resembles the Python 3 namespace"""
493 """Add an item to six.moves."""
498 """Remove item from six.moves."""
508 if PY3:
541 if PY3:
579 if PY3:
624 if PY3:
626 return s.encode("latin-1")
684 if PY3:
743 """The new-style print function for Python 2.4 and 2.5."""
865 klass.__str__ = lambda self: self.__unicode__().encode('utf-8')
876 # Remove other six meta path importers, since they cause problems. This can
877 # happen if six is removed from sys.modules and then reloaded. (Setuptools does
881 # Here's some real nastiness: Another "instance" of the six module might
883 # the six meta path importer, since the other six instance will have