Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
pip._vendor.six Namespace Reference

Data Structures

class  _LazyDescr
 
class  _LazyModule
 
class  _MovedItems
 
class  _SixMetaPathImporter
 
class  Iterator
 
class  Module_six_moves_urllib
 
class  Module_six_moves_urllib_error
 
class  Module_six_moves_urllib_parse
 
class  Module_six_moves_urllib_request
 
class  Module_six_moves_urllib_response
 
class  Module_six_moves_urllib_robotparser
 
class  MovedAttribute
 
class  MovedModule
 
class  X
 

Functions

 _add_doc (func, doc)
 
 _import_module (name)
 
 add_move (move)
 
 remove_move (name)
 
 advance_iterator (it)
 
 callable (obj)
 
 get_unbound_function (unbound)
 
 create_unbound_method (func, cls)
 
 create_bound_method (func, obj)
 
 iterkeys (d, **kw)
 
 itervalues (d, **kw)
 
 iteritems (d, **kw)
 
 iterlists (d, **kw)
 
 b (s)
 
 u (s)
 
 byte2int (bs)
 
 indexbytes (buf, i)
 
 assertCountEqual (self, *args, **kwargs)
 
 assertRaisesRegex (self, *args, **kwargs)
 
 assertRegex (self, *args, **kwargs)
 
 assertNotRegex (self, *args, **kwargs)
 
 reraise (tp, value, tb=None)
 
 exec_ (_code_, _globs_=None, _locs_=None)
 
 raise_from (value, from_value)
 
 print_ (*args, **kwargs)
 
 _update_wrapper (wrapper, wrapped, assigned=functools.WRAPPER_ASSIGNMENTS, updated=functools.WRAPPER_UPDATES)
 
 wraps (wrapped, assigned=functools.WRAPPER_ASSIGNMENTS, updated=functools.WRAPPER_UPDATES)
 
 with_metaclass (meta, *bases)
 
 add_metaclass (metaclass)
 
 ensure_binary (s, encoding='utf-8', errors='strict')
 
 ensure_str (s, encoding='utf-8', errors='strict')
 
 ensure_text (s, encoding='utf-8', errors='strict')
 
 python_2_unicode_compatible (klass)
 

Variables

int PY2 = 2
 
int PY3 = 3
 
tuple PY34 = (3, 4)
 
 string_types = str,
 
 integer_types = int,
 
 class_types = type,
 
 text_type = str
 
 binary_type = bytes
 
 MAXSIZE = sys.maxsize
 
 spec_from_loader = None
 
 _importer = _SixMetaPathImporter(__name__)
 
list _moved_attributes
 
 moves = _MovedItems(__name__ + ".moves")
 
list _urllib_parse_moved_attributes
 
list _urllib_error_moved_attributes
 
list _urllib_request_moved_attributes
 
list _urllib_response_moved_attributes
 
list _urllib_robotparser_moved_attributes
 
str _meth_func = "__func__"
 
str _meth_self = "__self__"
 
str _func_closure = "__closure__"
 
str _func_code = "__code__"
 
str _func_defaults = "__defaults__"
 
str _func_globals = "__globals__"
 
 advance_iterator = next
 
 next = advance_iterator
 
 callable = callable
 
 create_bound_method = types.MethodType
 
 Iterator = object
 
 get_method_function = operator.attrgetter(_meth_func)
 
 get_method_self = operator.attrgetter(_meth_self)
 
 get_function_closure = operator.attrgetter(_func_closure)
 
 get_function_code = operator.attrgetter(_func_code)
 
 get_function_defaults = operator.attrgetter(_func_defaults)
 
 get_function_globals = operator.attrgetter(_func_globals)
 
 viewkeys = operator.methodcaller("keys")
 
 viewvalues = operator.methodcaller("values")
 
 viewitems = operator.methodcaller("items")
 
 unichr = chr
 
 int2byte = struct.Struct(">B").pack
 
 byte2int = operator.itemgetter(0)
 
 indexbytes = operator.getitem
 
 iterbytes = iter
 
 StringIO = io.StringIO
 
 BytesIO = io.BytesIO
 
str _assertCountEqual = "assertCountEqual"
 
str _assertRaisesRegex = "assertRaisesRegexp"
 
str _assertRegex = "assertRegexpMatches"
 
str _assertNotRegex = "assertNotRegexpMatches"
 
 exec_ = getattr(moves.builtins, "exec")
 
 print_ = getattr(moves.builtins, "print", None)
 
 _print = print_
 
 wraps = functools.wraps
 
 submodule_search_locations
 

Detailed Description

Utilities for writing code that runs on Python 2 and 3

Function Documentation

◆ _add_doc()

_add_doc (   func,
  doc 
)
protected
Add documentation to a function.

Definition at line 80 of file six.py.

80def _add_doc(func, doc):
81 """Add documentation to a function."""
82 func.__doc__ = doc
83
84
for i

References i.

◆ _import_module()

_import_module (   name)
protected
Import module, returning the module after the last dot.

Definition at line 85 of file six.py.

85def _import_module(name):
86 """Import module, returning the module after the last dot."""
87 __import__(name)
88 return sys.modules[name]
89
90

References i.

Referenced by MovedModule._resolve(), and MovedAttribute._resolve().

Here is the caller graph for this function:

◆ _update_wrapper()

_update_wrapper (   wrapper,
  wrapped,
  assigned = functools.WRAPPER_ASSIGNMENTS,
  updated = functools.WRAPPER_UPDATES 
)
protected

Definition at line 830 of file six.py.

833 for attr in assigned:
834 try:
835 value = getattr(wrapped, attr)
836 except AttributeError:
837 continue
838 else:
839 setattr(wrapper, attr, value)
840 for attr in updated:
841 getattr(wrapper, attr).update(getattr(wrapped, attr, {}))
842 wrapper.__wrapped__ = wrapped
843 return wrapper

◆ add_metaclass()

add_metaclass (   metaclass)
Class decorator for creating a class with a metaclass.

Definition at line 880 of file six.py.

880def add_metaclass(metaclass):
881 """Class decorator for creating a class with a metaclass."""
882 def wrapper(cls):
883 orig_vars = cls.__dict__.copy()
884 slots = orig_vars.get('__slots__')
885 if slots is not None:
886 if isinstance(slots, str):
887 slots = [slots]
888 for slots_var in slots:
889 orig_vars.pop(slots_var)
890 orig_vars.pop('__dict__', None)
891 orig_vars.pop('__weakref__', None)
892 if hasattr(cls, '__qualname__'):
893 orig_vars['__qualname__'] = cls.__qualname__
894 return metaclass(cls.__name__, cls.__bases__, orig_vars)
895 return wrapper
896
897

◆ add_move()

add_move (   move)
Add an item to six.moves.

Definition at line 510 of file six.py.

510def add_move(move):
511 """Add an item to six.moves."""
512 setattr(_MovedItems, move.name, move)
513
514

◆ advance_iterator()

advance_iterator (   it)

Definition at line 547 of file six.py.

547 def advance_iterator(it):
548 return it.next()

◆ assertCountEqual()

assertCountEqual (   self,
args,
**  kwargs 
)

Definition at line 694 of file six.py.

694def assertCountEqual(self, *args, **kwargs):
695 return getattr(self, _assertCountEqual)(*args, **kwargs)
696
697

◆ assertNotRegex()

assertNotRegex (   self,
args,
**  kwargs 
)

Definition at line 706 of file six.py.

706def assertNotRegex(self, *args, **kwargs):
707 return getattr(self, _assertNotRegex)(*args, **kwargs)
708
709

◆ assertRaisesRegex()

assertRaisesRegex (   self,
args,
**  kwargs 
)

Definition at line 698 of file six.py.

698def assertRaisesRegex(self, *args, **kwargs):
699 return getattr(self, _assertRaisesRegex)(*args, **kwargs)
700
701

◆ assertRegex()

assertRegex (   self,
args,
**  kwargs 
)

Definition at line 702 of file six.py.

702def assertRegex(self, *args, **kwargs):
703 return getattr(self, _assertRegex)(*args, **kwargs)
704
705

◆ b()

b (   s)

Definition at line 643 of file six.py.

643 def b(s):
644 return s.encode("latin-1")
645

◆ byte2int()

byte2int (   bs)

Definition at line 678 of file six.py.

678 def byte2int(bs):
679 return ord(bs[0])
680

◆ callable()

callable (   obj)

Definition at line 555 of file six.py.

555 def callable(obj):
556 return any("__call__" in klass.__dict__ for klass in type(obj).__mro__)
557
558

◆ create_bound_method()

create_bound_method (   func,
  obj 
)

Definition at line 573 of file six.py.

573 def create_bound_method(func, obj):
574 return types.MethodType(func, obj, obj.__class__)
575

◆ create_unbound_method()

create_unbound_method (   func,
  cls 
)

Definition at line 565 of file six.py.

565 def create_unbound_method(func, cls):
566 return func
567

◆ ensure_binary()

ensure_binary (   s,
  encoding = 'utf-8',
  errors = 'strict' 
)
Coerce **s** to six.binary_type.

For Python 2:
  - `unicode` -> encoded to `str`
  - `str` -> `str`

For Python 3:
  - `str` -> encoded to `bytes`
  - `bytes` -> `bytes`

Definition at line 898 of file six.py.

898def ensure_binary(s, encoding='utf-8', errors='strict'):
899 """Coerce **s** to six.binary_type.
900
901 For Python 2:
902 - `unicode` -> encoded to `str`
903 - `str` -> `str`
904
905 For Python 3:
906 - `str` -> encoded to `bytes`
907 - `bytes` -> `bytes`
908 """
909 if isinstance(s, binary_type):
910 return s
911 if isinstance(s, text_type):
912 return s.encode(encoding, errors)
913 raise TypeError("not expecting type '%s'" % type(s))
914
915

◆ ensure_str()

ensure_str (   s,
  encoding = 'utf-8',
  errors = 'strict' 
)
Coerce *s* to `str`.

For Python 2:
  - `unicode` -> encoded to `str`
  - `str` -> `str`

For Python 3:
  - `str` -> `str`
  - `bytes` -> decoded to `str`

Definition at line 916 of file six.py.

916def ensure_str(s, encoding='utf-8', errors='strict'):
917 """Coerce *s* to `str`.
918
919 For Python 2:
920 - `unicode` -> encoded to `str`
921 - `str` -> `str`
922
923 For Python 3:
924 - `str` -> `str`
925 - `bytes` -> decoded to `str`
926 """
927 # Optimization: Fast return for the common case.
928 if type(s) is str:
929 return s
930 if PY2 and isinstance(s, text_type):
931 return s.encode(encoding, errors)
932 elif PY3 and isinstance(s, binary_type):
933 return s.decode(encoding, errors)
934 elif not isinstance(s, (text_type, binary_type)):
935 raise TypeError("not expecting type '%s'" % type(s))
936 return s
937
938

◆ ensure_text()

ensure_text (   s,
  encoding = 'utf-8',
  errors = 'strict' 
)
Coerce *s* to six.text_type.

For Python 2:
  - `unicode` -> `unicode`
  - `str` -> `unicode`

For Python 3:
  - `str` -> `str`
  - `bytes` -> decoded to `str`

Definition at line 939 of file six.py.

939def ensure_text(s, encoding='utf-8', errors='strict'):
940 """Coerce *s* to six.text_type.
941
942 For Python 2:
943 - `unicode` -> `unicode`
944 - `str` -> `unicode`
945
946 For Python 3:
947 - `str` -> `str`
948 - `bytes` -> decoded to `str`
949 """
950 if isinstance(s, binary_type):
951 return s.decode(encoding, errors)
952 elif isinstance(s, text_type):
953 return s
954 else:
955 raise TypeError("not expecting type '%s'" % type(s))
956
957

◆ exec_()

exec_ (   _code_,
  _globs_ = None,
  _locs_ = None 
)
Execute code in a namespace.

Definition at line 725 of file six.py.

725 def exec_(_code_, _globs_=None, _locs_=None):
726 """Execute code in a namespace."""
727 if _globs_ is None:
728 frame = sys._getframe(1)
729 _globs_ = frame.f_globals
730 if _locs_ is None:
731 _locs_ = frame.f_locals
732 del frame
733 elif _locs_ is None:
734 _locs_ = _globs_
735 exec("""exec _code_ in _globs_, _locs_""")
736

◆ get_unbound_function()

get_unbound_function (   unbound)

Definition at line 560 of file six.py.

560 def get_unbound_function(unbound):
561 return unbound
562

◆ indexbytes()

indexbytes (   buf,
  i 
)

Definition at line 681 of file six.py.

681 def indexbytes(buf, i):
682 return ord(buf[i])

◆ iteritems()

iteritems (   d,
**  kw 
)

Definition at line 604 of file six.py.

604 def iteritems(d, **kw):
605 return iter(d.items(**kw))
606

◆ iterkeys()

iterkeys (   d,
**  kw 
)

Definition at line 598 of file six.py.

598 def iterkeys(d, **kw):
599 return iter(d.keys(**kw))
600

◆ iterlists()

iterlists (   d,
**  kw 
)

Definition at line 607 of file six.py.

607 def iterlists(d, **kw):
608 return iter(d.lists(**kw))
609

◆ itervalues()

itervalues (   d,
**  kw 
)

Definition at line 601 of file six.py.

601 def itervalues(d, **kw):
602 return iter(d.values(**kw))
603

◆ print_()

print_ ( args,
**  kwargs 
)
The new-style print function for Python 2.4 and 2.5.

Definition at line 759 of file six.py.

759 def print_(*args, **kwargs):
760 """The new-style print function for Python 2.4 and 2.5."""
761 fp = kwargs.pop("file", sys.stdout)
762 if fp is None:
763 return
764
765 def write(data):
766 if not isinstance(data, basestring):
767 data = str(data)
768 # If the file has an encoding, encode unicode with it.
769 if (isinstance(fp, file) and
770 isinstance(data, unicode) and
771 fp.encoding is not None):
772 errors = getattr(fp, "errors", None)
773 if errors is None:
774 errors = "strict"
775 data = data.encode(fp.encoding, errors)
776 fp.write(data)
777 want_unicode = False
778 sep = kwargs.pop("sep", None)
779 if sep is not None:
780 if isinstance(sep, unicode):
781 want_unicode = True
782 elif not isinstance(sep, str):
783 raise TypeError("sep must be None or a string")
784 end = kwargs.pop("end", None)
785 if end is not None:
786 if isinstance(end, unicode):
787 want_unicode = True
788 elif not isinstance(end, str):
789 raise TypeError("end must be None or a string")
790 if kwargs:
791 raise TypeError("invalid keyword arguments to print()")
792 if not want_unicode:
793 for arg in args:
794 if isinstance(arg, unicode):
795 want_unicode = True
796 break
797 if want_unicode:
798 newline = unicode("\n")
799 space = unicode(" ")
800 else:
801 newline = "\n"
802 space = " "
803 if sep is None:
804 sep = space
805 if end is None:
806 end = newline
807 for i, arg in enumerate(args):
808 if i:
809 write(sep)
810 write(arg)
811 write(end)

◆ python_2_unicode_compatible()

python_2_unicode_compatible (   klass)
A class decorator that defines __unicode__ and __str__ methods under Python 2.
Under Python 3 it does nothing.

To support Python 2 and 3 with a single code base, define a __str__ method
returning text and apply this decorator to the class.

Definition at line 958 of file six.py.

958def python_2_unicode_compatible(klass):
959 """
960 A class decorator that defines __unicode__ and __str__ methods under Python 2.
961 Under Python 3 it does nothing.
962
963 To support Python 2 and 3 with a single code base, define a __str__ method
964 returning text and apply this decorator to the class.
965 """
966 if PY2:
967 if '__str__' not in klass.__dict__:
968 raise ValueError("@python_2_unicode_compatible cannot be applied "
969 "to %s because it doesn't define __str__()." %
972 klass.__str__ = lambda self: self.__unicode__().encode('utf-8')
973 return klass
974
975
976# Complete the moves implementation.
977# This code is at the end of this module to speed up module loading.
978# Turn this module into a package.

◆ raise_from()

raise_from (   value,
  from_value 
)

Definition at line 753 of file six.py.

753 def raise_from(value, from_value):
754 raise value
755
756

◆ remove_move()

remove_move (   name)
Remove item from six.moves.

Definition at line 515 of file six.py.

515def remove_move(name):
516 """Remove item from six.moves."""
517 try:
518 delattr(_MovedItems, name)
519 except AttributeError:
520 try:
521 del moves.__dict__[name]
522 except KeyError:
523 raise AttributeError("no such move, %r" % (name,))
524
525

◆ reraise()

reraise (   tp,
  value,
  tb = None 
)

Definition at line 713 of file six.py.

713 def reraise(tp, value, tb=None):
714 try:
715 if value is None:
716 value = tp()
717 if value.__traceback__ is not tb:
718 raise value.with_traceback(tb)
719 raise value
720 finally:
721 value = None
722 tb = None
723

◆ u()

u (   s)

Definition at line 646 of file six.py.

646 def u(s):
647 return s

◆ with_metaclass()

with_metaclass (   meta,
bases 
)
Create a base class with a metaclass.

Definition at line 856 of file six.py.

856def with_metaclass(meta, *bases):
857 """Create a base class with a metaclass."""
858 # This requires a bit of explanation: the basic idea is to make a dummy
859 # metaclass for one level of class instantiation that replaces itself with
860 # the actual metaclass.
861 class metaclass(type):
862
863 def __new__(cls, name, this_bases, d):
864 if sys.version_info[:2] >= (3, 7):
865 # This version introduced PEP 560 that requires a bit
866 # of extra care (we mimic what is done by __build_class__).
867 resolved_bases = types.resolve_bases(bases)
868 if resolved_bases is not bases:
869 d['__orig_bases__'] = bases
870 else:
871 resolved_bases = bases
872 return meta(name, resolved_bases, d)
873
874 @classmethod
875 def __prepare__(cls, name, this_bases):
876 return meta.__prepare__(name, bases)
877 return type.__new__(metaclass, 'temporary_class', (), {})
878
879

◆ wraps()

wraps (   wrapped,
  assigned = functools.WRAPPER_ASSIGNMENTS,
  updated = functools.WRAPPER_UPDATES 
)

Definition at line 846 of file six.py.

848 return functools.partial(_update_wrapper, wrapped=wrapped,
849 assigned=assigned, updated=updated)

Variable Documentation

◆ _assertCountEqual

str _assertCountEqual = "assertCountEqual"
protected

Definition at line 659 of file six.py.

◆ _assertNotRegex

str _assertNotRegex = "assertNotRegexpMatches"
protected

Definition at line 663 of file six.py.

◆ _assertRaisesRegex

str _assertRaisesRegex = "assertRaisesRegexp"
protected

Definition at line 661 of file six.py.

◆ _assertRegex

str _assertRegex = "assertRegexpMatches"
protected

Definition at line 662 of file six.py.

◆ _func_closure

str _func_closure = "__closure__"
protected

Definition at line 530 of file six.py.

◆ _func_code

str _func_code = "__code__"
protected

Definition at line 531 of file six.py.

◆ _func_defaults

str _func_defaults = "__defaults__"
protected

Definition at line 532 of file six.py.

◆ _func_globals

str _func_globals = "__globals__"
protected

Definition at line 533 of file six.py.

◆ _importer

_importer = _SixMetaPathImporter(__name__)
protected

Definition at line 242 of file six.py.

◆ _meth_func

str _meth_func = "__func__"
protected

Definition at line 527 of file six.py.

◆ _meth_self

str _meth_self = "__self__"
protected

Definition at line 528 of file six.py.

◆ _moved_attributes

_moved_attributes
protected

Definition at line 251 of file six.py.

◆ _print

_print = print_
protected

Definition at line 813 of file six.py.

◆ _urllib_error_moved_attributes

list _urllib_error_moved_attributes
protected
Initial value:
1= [
2 MovedAttribute("URLError", "urllib2", "urllib.error"),
3 MovedAttribute("HTTPError", "urllib2", "urllib.error"),
4 MovedAttribute("ContentTooShortError", "urllib", "urllib.error"),
5]

Definition at line 387 of file six.py.

◆ _urllib_parse_moved_attributes

list _urllib_parse_moved_attributes
protected
Initial value:
1= [
2 MovedAttribute("ParseResult", "urlparse", "urllib.parse"),
3 MovedAttribute("SplitResult", "urlparse", "urllib.parse"),
4 MovedAttribute("parse_qs", "urlparse", "urllib.parse"),
5 MovedAttribute("parse_qsl", "urlparse", "urllib.parse"),
6 MovedAttribute("urldefrag", "urlparse", "urllib.parse"),
7 MovedAttribute("urljoin", "urlparse", "urllib.parse"),
8 MovedAttribute("urlparse", "urlparse", "urllib.parse"),
9 MovedAttribute("urlsplit", "urlparse", "urllib.parse"),
10 MovedAttribute("urlunparse", "urlparse", "urllib.parse"),
11 MovedAttribute("urlunsplit", "urlparse", "urllib.parse"),
12 MovedAttribute("quote", "urllib", "urllib.parse"),
13 MovedAttribute("quote_plus", "urllib", "urllib.parse"),
14 MovedAttribute("unquote", "urllib", "urllib.parse"),
15 MovedAttribute("unquote_plus", "urllib", "urllib.parse"),
16 MovedAttribute("unquote_to_bytes", "urllib", "urllib.parse", "unquote", "unquote_to_bytes"),
17 MovedAttribute("urlencode", "urllib", "urllib.parse"),
18 MovedAttribute("splitquery", "urllib", "urllib.parse"),
19 MovedAttribute("splittag", "urllib", "urllib.parse"),
20 MovedAttribute("splituser", "urllib", "urllib.parse"),
21 MovedAttribute("splitvalue", "urllib", "urllib.parse"),
22 MovedAttribute("uses_fragment", "urlparse", "urllib.parse"),
23 MovedAttribute("uses_netloc", "urlparse", "urllib.parse"),
24 MovedAttribute("uses_params", "urlparse", "urllib.parse"),
25 MovedAttribute("uses_query", "urlparse", "urllib.parse"),
26 MovedAttribute("uses_relative", "urlparse", "urllib.parse"),
27]

Definition at line 345 of file six.py.

◆ _urllib_request_moved_attributes

list _urllib_request_moved_attributes
protected

Definition at line 407 of file six.py.

◆ _urllib_response_moved_attributes

list _urllib_response_moved_attributes
protected
Initial value:
1= [
2 MovedAttribute("addbase", "urllib", "urllib.response"),
3 MovedAttribute("addclosehook", "urllib", "urllib.response"),
4 MovedAttribute("addinfo", "urllib", "urllib.response"),
5 MovedAttribute("addinfourl", "urllib", "urllib.response"),
6]

Definition at line 459 of file six.py.

◆ _urllib_robotparser_moved_attributes

list _urllib_robotparser_moved_attributes
protected
Initial value:
1= [
2 MovedAttribute("RobotFileParser", "robotparser", "urllib.robotparser"),
3]

Definition at line 480 of file six.py.

◆ advance_iterator

advance_iterator = next

Definition at line 545 of file six.py.

◆ binary_type

binary_type = bytes

Definition at line 45 of file six.py.

◆ byte2int

byte2int = operator.itemgetter(0)

Definition at line 652 of file six.py.

◆ BytesIO

BytesIO = io.BytesIO

Definition at line 657 of file six.py.

◆ callable

callable = callable

Definition at line 553 of file six.py.

◆ class_types

tuple class_types = type,

Definition at line 43 of file six.py.

◆ create_bound_method

create_bound_method = types.MethodType

Definition at line 563 of file six.py.

◆ exec_

exec_ = getattr(moves.builtins, "exec")

Definition at line 711 of file six.py.

◆ get_function_closure

get_function_closure = operator.attrgetter(_func_closure)

Definition at line 591 of file six.py.

◆ get_function_code

get_function_code = operator.attrgetter(_func_code)

Definition at line 592 of file six.py.

◆ get_function_defaults

get_function_defaults = operator.attrgetter(_func_defaults)

Definition at line 593 of file six.py.

◆ get_function_globals

get_function_globals = operator.attrgetter(_func_globals)

Definition at line 594 of file six.py.

◆ get_method_function

get_method_function = operator.attrgetter(_meth_func)

Definition at line 589 of file six.py.

◆ get_method_self

get_method_self = operator.attrgetter(_meth_self)

Definition at line 590 of file six.py.

◆ indexbytes

indexbytes = operator.getitem

Definition at line 653 of file six.py.

◆ int2byte

int2byte = struct.Struct(">B").pack

Definition at line 650 of file six.py.

◆ integer_types

tuple integer_types = int,

Definition at line 42 of file six.py.

◆ Iterator

Iterator = object

Definition at line 568 of file six.py.

◆ iterbytes

iterbytes = iter

Definition at line 654 of file six.py.

◆ MAXSIZE

MAXSIZE = sys.maxsize

Definition at line 47 of file six.py.

◆ moves

moves = _MovedItems(__name__ + ".moves")

Definition at line 336 of file six.py.

◆ next

Definition at line 549 of file six.py.

◆ print_

print_ = getattr(moves.builtins, "print", None)

Definition at line 757 of file six.py.

◆ PY2

int PY2 = 2

Definition at line 36 of file six.py.

◆ PY3

int PY3 = 3

Definition at line 37 of file six.py.

◆ PY34

tuple PY34 = (3, 4)

Definition at line 38 of file six.py.

◆ spec_from_loader

spec_from_loader = None

Definition at line 77 of file six.py.

◆ string_types

string_types = str,

Definition at line 41 of file six.py.

◆ StringIO

StringIO = io.StringIO

Definition at line 656 of file six.py.

◆ submodule_search_locations

submodule_search_locations

Definition at line 982 of file six.py.

◆ text_type

text_type = str

Definition at line 44 of file six.py.

◆ unichr

unichr = chr

Definition at line 648 of file six.py.

◆ viewitems

viewitems = operator.methodcaller("items")

Definition at line 614 of file six.py.

◆ viewkeys

viewkeys = operator.methodcaller("keys")

Definition at line 610 of file six.py.

◆ viewvalues

viewvalues = operator.methodcaller("values")

Definition at line 612 of file six.py.

◆ wraps

wraps = functools.wraps

Definition at line 853 of file six.py.