arcresthelper.packages package¶
Submodules¶
arcresthelper.packages.six module¶
Utilities for writing code that runs on Python 2 and 3
-
class
arcresthelper.packages.six.
Module_six_moves_urllib
[source]¶ Bases:
module
Create a six.moves.urllib namespace that resembles the Python 3 namespace
-
error
= <module 'arcresthelper.packages.six.moves.urllib.error' (built-in)>¶
-
parse
= <module 'arcresthelper.packages.six.moves.urllib_parse' (built-in)>¶
-
request
= <module 'arcresthelper.packages.six.moves.urllib.request' (built-in)>¶
-
response
= <module 'arcresthelper.packages.six.moves.urllib.response' (built-in)>¶
-
robotparser
= <module 'arcresthelper.packages.six.moves.urllib.robotparser' (built-in)>¶
-
-
class
arcresthelper.packages.six.
Module_six_moves_urllib_error
(name)[source]¶ Bases:
arcresthelper.packages.six._LazyModule
Lazy loading of moved objects in six.moves.urllib_error
-
class
arcresthelper.packages.six.
Module_six_moves_urllib_parse
(name)[source]¶ Bases:
arcresthelper.packages.six._LazyModule
Lazy loading of moved objects in six.moves.urllib_parse
-
class
arcresthelper.packages.six.
Module_six_moves_urllib_request
(name)[source]¶ Bases:
arcresthelper.packages.six._LazyModule
Lazy loading of moved objects in six.moves.urllib_request
-
class
arcresthelper.packages.six.
Module_six_moves_urllib_response
(name)[source]¶ Bases:
arcresthelper.packages.six._LazyModule
Lazy loading of moved objects in six.moves.urllib_response
-
class
arcresthelper.packages.six.
Module_six_moves_urllib_robotparser
(name)[source]¶ Bases:
arcresthelper.packages.six._LazyModule
Lazy loading of moved objects in six.moves.urllib_robotparser
-
class
arcresthelper.packages.six.
MovedAttribute
(name, old_mod, new_mod, old_attr=None, new_attr=None)[source]¶ Bases:
arcresthelper.packages.six._LazyDescr
-
class
arcresthelper.packages.six.
MovedModule
(name, old, new=None)[source]¶ Bases:
arcresthelper.packages.six._LazyDescr
-
arcresthelper.packages.six.
add_metaclass
(metaclass)[source]¶ Class decorator for creating a class with a metaclass.
-
arcresthelper.packages.six.
exec_
(_code_, _globs_=None, _locs_=None)[source]¶ Execute code in a namespace.
-
arcresthelper.packages.six.
get_unbound_function
(unbound)[source]¶ Get the function out of a possibly unbound function
-
arcresthelper.packages.six.
iteritems
(d, **kw)[source]¶ Return an iterator over the (key, value) pairs of a dictionary.
-
arcresthelper.packages.six.
iterkeys
(d, **kw)[source]¶ Return an iterator over the keys of a dictionary.
-
arcresthelper.packages.six.
iterlists
(d, **kw)[source]¶ Return an iterator over the (key, [values]) pairs of a dictionary.
-
arcresthelper.packages.six.
itervalues
(d, **kw)[source]¶ Return an iterator over the values of a dictionary.
-
arcresthelper.packages.six.
python_2_unicode_compatible
(klass)[source]¶ A 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.