irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

irods.six Namespace Reference

Classes

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

def _add_doc (func, doc)
 
def _import_module (name)
 
def add_move (move)
 
def remove_move (name)
 
def advance_iterator (it)
 
def callable (obj)
 
def get_unbound_function (unbound)
 
def create_bound_method (func, obj)
 
def iterkeys (d, **kw)
 
def itervalues (d, **kw)
 
def iteritems (d, **kw)
 
def iterlists (d, **kw)
 
def b (s)
 
def u (s)
 
def int2byte (i)
 
def byte2int (bs)
 
def indexbytes (buf, i)
 
def assertCountEqual (self, *args, **kwargs)
 
def assertRaisesRegex (self, *args, **kwargs)
 
def assertRegex (self, *args, **kwargs)
 
def reraise (tp, value, tb=None)
 
def exec_ (_code_, _globs_=None, _locs_=None)
 
def raise_from (value, from_value)
 
def print_ (*args, **kwargs)
 
def wraps (wrapped, assigned=functools.WRAPPER_ASSIGNMENTS, updated=functools.WRAPPER_UPDATES)
 
def with_metaclass (meta, *bases)
 
def add_metaclass (metaclass)
 
def python_2_unicode_compatible (klass)
 

Variables

string __author__ = "Benjamin Peterson <benjamin@python.org>"
 
string __version__ = "1.9.0"
 
int PY2 = 2
 
int PY3 = 3
 
 string_types = str,
 
 integer_types = int,
 
 class_types = type,
 
 text_type = str
 
 binary_type = bytes
 
 MAXSIZE = sys.maxsize
 
 _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
 
string _meth_func = "__func__"
 
string _meth_self = "__self__"
 
string _func_closure = "__closure__"
 
string _func_code = "__code__"
 
string _func_defaults = "__defaults__"
 
string _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 = operator.methodcaller("to_bytes", 1, "big")
 
 byte2int = operator.itemgetter(0)
 
 indexbytes = operator.getitem
 
 iterbytes = iter
 
 StringIO = io.StringIO
 
 BytesIO = io.BytesIO
 
string _assertCountEqual = "assertCountEqual"
 
string _assertRaisesRegex = "assertRaisesRegex"
 
string _assertRegex = "assertRegex"
 
 exec_ = getattr(moves.builtins, "exec")
 
 print_ = getattr(moves.builtins, "print", None)
 
 _print = print_
 
def wraps = functools.wraps
 
list __path__ = []
 
 __package__ = __name__
 
 submodule_search_locations
 

Detailed Description

Utilities for writing code that runs on Python 2 and 3

Function Documentation

◆ _add_doc()

def irods.six._add_doc (   func,
  doc 
)
private
Add documentation to a function.

Definition at line 74 of file six.py.

Referenced by irods.six.indexbytes(), and irods.six.Iterator.next().

◆ _import_module()

def irods.six._import_module (   name)
private
Import module, returning the module after the last dot.

Definition at line 79 of file six.py.

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

◆ add_metaclass()

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

Definition at line 798 of file six.py.

References irods::experimental::filesystem::client.copy().

Here is the call graph for this function:

◆ add_move()

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

Definition at line 479 of file six.py.

◆ advance_iterator()

def irods.six.advance_iterator (   it)

Definition at line 516 of file six.py.

References irods.six.advance_iterator.

◆ assertCountEqual()

def irods.six.assertCountEqual (   self,
args,
**  kwargs 
)

Definition at line 652 of file six.py.

◆ assertRaisesRegex()

def irods.six.assertRaisesRegex (   self,
args,
**  kwargs 
)

Definition at line 656 of file six.py.

◆ assertRegex()

def irods.six.assertRegex (   self,
args,
**  kwargs 
)

Definition at line 660 of file six.py.

◆ b()

◆ byte2int()

def irods.six.byte2int (   bs)

Definition at line 637 of file six.py.

References irods.six.byte2int.

◆ callable()

def irods.six.callable (   obj)

Definition at line 524 of file six.py.

References irods.six.callable, and type.

◆ create_bound_method()

def irods.six.create_bound_method (   func,
  obj 
)

Definition at line 539 of file six.py.

References irods.six.create_bound_method.

◆ exec_()

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

Definition at line 675 of file six.py.

References irods.six.exec_.

◆ get_unbound_function()

def irods.six.get_unbound_function (   unbound)

Definition at line 529 of file six.py.

◆ indexbytes()

def irods.six.indexbytes (   buf,
  i 
)

Definition at line 640 of file six.py.

References irods.six._add_doc(), and irods.six.indexbytes.

Here is the call graph for this function:

◆ int2byte()

def irods.six.int2byte (   i)

Definition at line 613 of file six.py.

References irods.six.int2byte.

◆ iteritems()

def irods.six.iteritems (   d,
**  kw 
)

Definition at line 567 of file six.py.

◆ iterkeys()

def irods.six.iterkeys (   d,
**  kw 
)

Definition at line 561 of file six.py.

◆ iterlists()

def irods.six.iterlists (   d,
**  kw 
)

Definition at line 570 of file six.py.

◆ itervalues()

def irods.six.itervalues (   d,
**  kw 
)

Definition at line 564 of file six.py.

◆ print_()

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

Definition at line 709 of file six.py.

References irods.six.print_, and irods.pypyodbc.unicode.

◆ python_2_unicode_compatible()

def irods.six.python_2_unicode_compatible (   klass)
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.

Definition at line 814 of file six.py.

References irods.password_obfuscation.encode().

Here is the call graph for this function:

◆ raise_from()

def irods.six.raise_from (   value,
  from_value 
)

Definition at line 703 of file six.py.

◆ remove_move()

def irods.six.remove_move (   name)
Remove item from six.moves.

Definition at line 484 of file six.py.

◆ reraise()

def irods.six.reraise (   tp,
  value,
  tb = None 
)

Definition at line 667 of file six.py.

Referenced by irods.lib.int_filter().

◆ u()

def irods.six.u (   s)

Definition at line 609 of file six.py.

Referenced by fillGenQueryInpFromStrCond(), getCondFromString(), and getNextRepeatTime().

◆ with_metaclass()

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

Definition at line 786 of file six.py.

◆ wraps()

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

Definition at line 775 of file six.py.

References irods.six.wraps.

Variable Documentation

◆ __author__

string irods.six.__author__ = "Benjamin Peterson <benjamin@python.org>"
private

Definition at line 31 of file six.py.

◆ __package__

irods.six.__package__ = __name__
private

Definition at line 836 of file six.py.

◆ __path__

list irods.six.__path__ = []
private

Definition at line 835 of file six.py.

◆ __version__

string irods.six.__version__ = "1.9.0"
private

Definition at line 32 of file six.py.

◆ _assertCountEqual

string irods.six._assertCountEqual = "assertCountEqual"
private

Definition at line 624 of file six.py.

◆ _assertRaisesRegex

string irods.six._assertRaisesRegex = "assertRaisesRegex"
private

Definition at line 625 of file six.py.

◆ _assertRegex

string irods.six._assertRegex = "assertRegex"
private

Definition at line 626 of file six.py.

◆ _func_closure

string irods.six._func_closure = "__closure__"
private

Definition at line 499 of file six.py.

◆ _func_code

string irods.six._func_code = "__code__"
private

Definition at line 500 of file six.py.

◆ _func_defaults

string irods.six._func_defaults = "__defaults__"
private

Definition at line 501 of file six.py.

◆ _func_globals

string irods.six._func_globals = "__globals__"
private

Definition at line 502 of file six.py.

◆ _importer

irods.six._importer = _SixMetaPathImporter(__name__)
private

Definition at line 225 of file six.py.

◆ _meth_func

string irods.six._meth_func = "__func__"
private

Definition at line 496 of file six.py.

◆ _meth_self

string irods.six._meth_self = "__self__"
private

Definition at line 497 of file six.py.

◆ _moved_attributes

irods.six._moved_attributes
private

Definition at line 234 of file six.py.

◆ _print

irods.six._print = print_
private

Definition at line 763 of file six.py.

◆ _urllib_error_moved_attributes

list irods.six._urllib_error_moved_attributes
private
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 358 of file six.py.

◆ _urllib_parse_moved_attributes

list irods.six._urllib_parse_moved_attributes
private
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("urlencode", "urllib", "urllib.parse"),
17  MovedAttribute("splitquery", "urllib", "urllib.parse"),
18  MovedAttribute("splittag", "urllib", "urllib.parse"),
19  MovedAttribute("splituser", "urllib", "urllib.parse"),
20  MovedAttribute("uses_fragment", "urlparse", "urllib.parse"),
21  MovedAttribute("uses_netloc", "urlparse", "urllib.parse"),
22  MovedAttribute("uses_params", "urlparse", "urllib.parse"),
23  MovedAttribute("uses_query", "urlparse", "urllib.parse"),
24  MovedAttribute("uses_relative", "urlparse", "urllib.parse"),
25 ]

Definition at line 318 of file six.py.

◆ _urllib_request_moved_attributes

list irods.six._urllib_request_moved_attributes
private

Definition at line 378 of file six.py.

◆ _urllib_response_moved_attributes

list irods.six._urllib_response_moved_attributes
private
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 428 of file six.py.

◆ _urllib_robotparser_moved_attributes

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

Definition at line 449 of file six.py.

◆ advance_iterator

irods.six.advance_iterator = next

Definition at line 514 of file six.py.

Referenced by irods.six.advance_iterator().

◆ binary_type

irods.six.binary_type = bytes

Definition at line 44 of file six.py.

◆ byte2int

irods.six.byte2int = operator.itemgetter(0)

Definition at line 618 of file six.py.

Referenced by irods.six.byte2int().

◆ BytesIO

irods.six.BytesIO = io.BytesIO

Definition at line 623 of file six.py.

◆ callable

irods.six.callable = callable

Definition at line 522 of file six.py.

Referenced by irods.six.callable().

◆ class_types

tuple irods.six.class_types = type,

Definition at line 42 of file six.py.

◆ create_bound_method

irods.six.create_bound_method = types.MethodType

Definition at line 532 of file six.py.

Referenced by irods.six.create_bound_method().

◆ exec_

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

Definition at line 665 of file six.py.

Referenced by irods.six.exec_().

◆ get_function_closure

irods.six.get_function_closure = operator.attrgetter(_func_closure)

Definition at line 554 of file six.py.

◆ get_function_code

irods.six.get_function_code = operator.attrgetter(_func_code)

Definition at line 555 of file six.py.

◆ get_function_defaults

irods.six.get_function_defaults = operator.attrgetter(_func_defaults)

Definition at line 556 of file six.py.

◆ get_function_globals

irods.six.get_function_globals = operator.attrgetter(_func_globals)

Definition at line 557 of file six.py.

◆ get_method_function

irods.six.get_method_function = operator.attrgetter(_meth_func)

Definition at line 552 of file six.py.

◆ get_method_self

irods.six.get_method_self = operator.attrgetter(_meth_self)

Definition at line 553 of file six.py.

◆ indexbytes

irods.six.indexbytes = operator.getitem

Definition at line 619 of file six.py.

Referenced by irods.six.indexbytes().

◆ int2byte

irods.six.int2byte = operator.methodcaller("to_bytes", 1, "big")

Definition at line 617 of file six.py.

Referenced by irods.six.int2byte().

◆ integer_types

tuple irods.six.integer_types = int,

Definition at line 41 of file six.py.

◆ Iterator

Definition at line 534 of file six.py.

◆ iterbytes

irods.six.iterbytes = iter

Definition at line 620 of file six.py.

◆ MAXSIZE

irods.six.MAXSIZE = sys.maxsize

Definition at line 46 of file six.py.

◆ moves

irods.six.moves = _MovedItems(__name__ + ".moves")

Definition at line 309 of file six.py.

◆ next

◆ print_

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

Definition at line 707 of file six.py.

Referenced by irods.six.print_().

◆ PY2

int irods.six.PY2 = 2

Definition at line 36 of file six.py.

◆ PY3

int irods.six.PY3 = 3

Definition at line 37 of file six.py.

◆ string_types

irods.six.string_types = str,

Definition at line 40 of file six.py.

◆ StringIO

irods.six.StringIO = io.StringIO

Definition at line 622 of file six.py.

◆ submodule_search_locations

irods.six.submodule_search_locations

Definition at line 838 of file six.py.

◆ text_type

irods.six.text_type = str

Definition at line 43 of file six.py.

◆ unichr

irods.six.unichr = chr

Definition at line 611 of file six.py.

◆ viewitems

irods.six.viewitems = operator.methodcaller("items")

Definition at line 577 of file six.py.

◆ viewkeys

irods.six.viewkeys = operator.methodcaller("keys")

Definition at line 573 of file six.py.

◆ viewvalues

irods.six.viewvalues = operator.methodcaller("values")

Definition at line 575 of file six.py.

◆ wraps

def irods.six.wraps = functools.wraps

Definition at line 783 of file six.py.

Referenced by irods.six.wraps().