OpenQuizz
Une application de gestion des contenus pédagogiques
pip._vendor.urllib3.packages.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

def add_move (move)
 
def remove_move (name)
 
def advance_iterator (it)
 
def callable (obj)
 
def get_unbound_function (unbound)
 
def create_unbound_method (func, cls)
 
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 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 ensure_binary (s, encoding="utf-8", errors="strict")
 
def ensure_str (s, encoding="utf-8", errors="strict")
 
def ensure_text (s, encoding="utf-8", errors="strict")
 
def python_2_unicode_compatible (klass)
 

Variables

 PY2
 
 PY3
 
 PY34
 
 string_types
 
 integer_types
 
 class_types
 
 text_type
 
 binary_type
 
 MAXSIZE
 
 moves
 
 advance_iterator
 
 next
 
 callable
 
 create_bound_method
 
 Iterator
 
 get_method_function
 
 get_method_self
 
 get_function_closure
 
 get_function_code
 
 get_function_defaults
 
 get_function_globals
 
 viewkeys
 
 viewvalues
 
 viewitems
 
 unichr
 
 int2byte
 
 byte2int
 
 indexbytes
 
 iterbytes
 
 StringIO
 
 BytesIO
 
 exec_
 
 print_
 
 wraps
 
 submodule_search_locations
 

Function Documentation

◆ add_metaclass()

def pip._vendor.urllib3.packages.six.add_metaclass (   metaclass)
Class decorator for creating a class with a metaclass.

◆ add_move()

def pip._vendor.urllib3.packages.six.add_move (   move)
Add an item to six.moves.

◆ advance_iterator()

def pip._vendor.urllib3.packages.six.advance_iterator (   it)

◆ assertCountEqual()

def pip._vendor.urllib3.packages.six.assertCountEqual (   self,
args,
**  kwargs 
)

◆ assertRaisesRegex()

def pip._vendor.urllib3.packages.six.assertRaisesRegex (   self,
args,
**  kwargs 
)

◆ assertRegex()

def pip._vendor.urllib3.packages.six.assertRegex (   self,
args,
**  kwargs 
)

◆ b()

def b (   s)

◆ byte2int()

def pip._vendor.urllib3.packages.six.byte2int (   bs)

◆ callable()

def pip._vendor.urllib3.packages.six.callable (   obj)

◆ create_bound_method()

def pip._vendor.urllib3.packages.six.create_bound_method (   func,
  obj 
)

◆ create_unbound_method()

def create_unbound_method (   func,
  cls 
)

◆ ensure_binary()

def pip._vendor.urllib3.packages.six.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`

◆ ensure_str()

def pip._vendor.urllib3.packages.six.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`

◆ ensure_text()

def pip._vendor.urllib3.packages.six.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`

◆ exec_()

def pip._vendor.urllib3.packages.six.exec_ (   _code_,
  _globs_ = None,
  _locs_ = None 
)
Execute code in a namespace.

◆ get_unbound_function()

def get_unbound_function (   unbound)

◆ indexbytes()

def pip._vendor.urllib3.packages.six.indexbytes (   buf,
  i 
)

◆ iteritems()

def iteritems (   d,
**  kw 
)

◆ iterkeys()

def iterkeys (   d,
**  kw 
)

◆ iterlists()

def iterlists (   d,
**  kw 
)

◆ itervalues()

def itervalues (   d,
**  kw 
)

◆ print_()

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

◆ python_2_unicode_compatible()

def pip._vendor.urllib3.packages.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.

◆ raise_from()

def pip._vendor.urllib3.packages.six.raise_from (   value,
  from_value 
)

◆ remove_move()

def pip._vendor.urllib3.packages.six.remove_move (   name)
Remove item from six.moves.

◆ reraise()

def pip._vendor.urllib3.packages.six.reraise (   tp,
  value,
  tb = None 
)

◆ u()

def u (   s)

◆ with_metaclass()

def pip._vendor.urllib3.packages.six.with_metaclass (   meta,
bases 
)
Create a base class with a metaclass.

◆ wraps()

def pip._vendor.urllib3.packages.six.wraps (   wrapped,
  assigned = functools.WRAPPER_ASSIGNMENTS,
  updated = functools.WRAPPER_UPDATES 
)

Variable Documentation

◆ advance_iterator

advance_iterator

◆ binary_type

binary_type

◆ byte2int

byte2int

◆ BytesIO

BytesIO

◆ callable

callable

◆ class_types

class_types

◆ create_bound_method

create_bound_method

◆ exec_

exec_

◆ get_function_closure

get_function_closure

◆ get_function_code

get_function_code

◆ get_function_defaults

get_function_defaults

◆ get_function_globals

get_function_globals

◆ get_method_function

get_method_function

◆ get_method_self

get_method_self

◆ indexbytes

indexbytes

◆ int2byte

int2byte

◆ integer_types

integer_types

◆ Iterator

◆ iterbytes

iterbytes

◆ MAXSIZE

MAXSIZE

◆ moves

moves

◆ next

next

◆ print_

print_

◆ PY2

PY2

◆ PY3

PY3

◆ PY34

PY34

◆ string_types

string_types

◆ StringIO

StringIO

◆ submodule_search_locations

submodule_search_locations

◆ text_type

text_type

◆ unichr

unichr

◆ viewitems

viewitems

◆ viewkeys

viewkeys

◆ viewvalues

viewvalues

◆ wraps

wraps