arcresthelper.packages package

Submodules

arcresthelper.packages.six module

Utilities for writing code that runs on Python 2 and 3

class arcresthelper.packages.six.Iterator[source]

Bases: object

next()[source]
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.add_move(move)[source]

Add an item to six.moves.

arcresthelper.packages.six.assertCountEqual(self, *args, **kwargs)[source]
arcresthelper.packages.six.assertRaisesRegex(self, *args, **kwargs)[source]
arcresthelper.packages.six.assertRegex(self, *args, **kwargs)[source]
arcresthelper.packages.six.b(s)[source]

Byte literal

arcresthelper.packages.six.byte2int(bs)[source]
arcresthelper.packages.six.create_bound_method(func, obj)[source]
arcresthelper.packages.six.create_unbound_method(func, cls)[source]
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.indexbytes(buf, i)[source]
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.print_(*args, **kwargs)[source]
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.

arcresthelper.packages.six.raise_from(value, from_value)[source]
arcresthelper.packages.six.remove_move(name)[source]

Remove item from six.moves.

arcresthelper.packages.six.reraise(tp, value, tb=None)[source]

Reraise an exception.

arcresthelper.packages.six.u(s)[source]

Text literal

arcresthelper.packages.six.with_metaclass(meta, *bases)[source]

Create a base class with a metaclass.

arcresthelper.packages.six.wraps(wrapped, assigned=('__module__', '__name__', '__doc__'), updated=('__dict__', ))[source]

Module contents