PyFoam.ThirdParty.six module¶
Utilities for writing code that runs on Python 2 and 3
-
class
PyFoam.ThirdParty.six.
Module_six_moves_urllib
[source]¶ Bases:
module
Create a six.moves.urllib namespace that resembles the Python 3 namespace
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
__path__
= []¶
-
error
= <module 'PyFoam.ThirdParty.six.moves.urllib.error'>¶
-
parse
= <module 'PyFoam.ThirdParty.six.moves.urllib_parse'>¶
-
request
= <module 'PyFoam.ThirdParty.six.moves.urllib.request'>¶
-
response
= <module 'PyFoam.ThirdParty.six.moves.urllib.response'>¶
-
robotparser
= <module 'PyFoam.ThirdParty.six.moves.urllib.robotparser'>¶
-
-
class
PyFoam.ThirdParty.six.
Module_six_moves_urllib_error
(name)[source]¶ Bases:
PyFoam.ThirdParty.six._LazyModule
Lazy loading of moved objects in six.moves.urllib_error
-
ContentTooShortError
¶
-
HTTPError
¶
-
URLError
¶
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
_moved_attributes
= [<PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>]¶
-
-
class
PyFoam.ThirdParty.six.
Module_six_moves_urllib_parse
(name)[source]¶ Bases:
PyFoam.ThirdParty.six._LazyModule
Lazy loading of moved objects in six.moves.urllib_parse
-
ParseResult
¶
-
SplitResult
¶
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
_moved_attributes
= [<PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>]¶
-
parse_qs
¶
-
parse_qsl
¶
-
quote
¶
-
quote_plus
¶
-
splitquery
¶
-
splittag
¶
-
splituser
¶
-
unquote
¶
-
unquote_plus
¶
-
urldefrag
¶
-
urlencode
¶
-
urljoin
¶
-
urlparse
¶
-
urlsplit
¶
-
urlunparse
¶
-
urlunsplit
¶
-
uses_fragment
¶
-
uses_netloc
¶
-
uses_params
¶
-
uses_query
¶
-
uses_relative
¶
-
-
class
PyFoam.ThirdParty.six.
Module_six_moves_urllib_request
(name)[source]¶ Bases:
PyFoam.ThirdParty.six._LazyModule
Lazy loading of moved objects in six.moves.urllib_request
-
AbstractBasicAuthHandler
¶
-
AbstractDigestAuthHandler
¶
-
BaseHandler
¶
-
CacheFTPHandler
¶
-
FTPHandler
¶
-
FancyURLopener
¶
-
FileHandler
¶
-
HTTPBasicAuthHandler
¶
-
HTTPCookieProcessor
¶
-
HTTPDefaultErrorHandler
¶
-
HTTPDigestAuthHandler
¶
-
HTTPErrorProcessor
¶
-
HTTPHandler
¶
-
HTTPPasswordMgr
¶
-
HTTPPasswordMgrWithDefaultRealm
¶
-
HTTPRedirectHandler
¶
-
HTTPSHandler
¶
-
OpenerDirector
¶
-
ProxyBasicAuthHandler
¶
-
ProxyDigestAuthHandler
¶
-
ProxyHandler
¶
-
Request
¶
-
URLopener
¶
-
UnknownHandler
¶
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
_moved_attributes
= [<PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>]¶
-
build_opener
¶
-
getproxies
¶
-
install_opener
¶
-
pathname2url
¶
-
proxy_bypass
¶
-
url2pathname
¶
-
urlcleanup
¶
-
urlopen
¶
-
urlretrieve
¶
-
-
class
PyFoam.ThirdParty.six.
Module_six_moves_urllib_response
(name)[source]¶ Bases:
PyFoam.ThirdParty.six._LazyModule
Lazy loading of moved objects in six.moves.urllib_response
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
_moved_attributes
= [<PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>]¶
-
addbase
¶
-
addclosehook
¶
-
addinfo
¶
-
addinfourl
¶
-
-
class
PyFoam.ThirdParty.six.
Module_six_moves_urllib_robotparser
(name)[source]¶ Bases:
PyFoam.ThirdParty.six._LazyModule
Lazy loading of moved objects in six.moves.urllib_robotparser
-
RobotFileParser
¶
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
_moved_attributes
= [<PyFoam.ThirdParty.six.MovedAttribute object>]¶
-
-
class
PyFoam.ThirdParty.six.
MovedAttribute
(name, old_mod, new_mod, old_attr=None, new_attr=None)[source]¶ Bases:
PyFoam.ThirdParty.six._LazyDescr
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
-
class
PyFoam.ThirdParty.six.
MovedModule
(name, old, new=None)[source]¶ Bases:
PyFoam.ThirdParty.six._LazyDescr
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
-
class
PyFoam.ThirdParty.six.
_LazyDescr
(name)[source]¶ Bases:
object
-
__dict__
= mappingproxy({'__weakref__': <attribute '__weakref__' of '_LazyDescr' objects>, '__init__': <function _LazyDescr.__init__>, '__doc__': None, '__dict__': <attribute '__dict__' of '_LazyDescr' objects>, '__module__': 'PyFoam.ThirdParty.six', '__get__': <function _LazyDescr.__get__>})¶
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
PyFoam.ThirdParty.six.
_LazyModule
(name)[source]¶ Bases:
module
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
_moved_attributes
= []¶
-
-
class
PyFoam.ThirdParty.six.
_MovedItems
(name)[source]¶ Bases:
PyFoam.ThirdParty.six._LazyModule
Lazy loading of moved objects
-
BaseHTTPServer
¶
-
CGIHTTPServer
¶
-
SimpleHTTPServer
¶
-
UserDict
¶
-
UserList
¶
-
UserString
¶
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
__path__
= []¶
-
_dummy_thread
¶
-
_moved_attributes
= [<PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedAttribute object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>, <PyFoam.ThirdParty.six.MovedModule object>]¶
-
_thread
¶
-
cStringIO
¶
-
copyreg
¶
-
dbm_gnu
¶
-
email_mime_base
¶
-
email_mime_multipart
¶
-
email_mime_nonmultipart
¶
-
email_mime_text
¶
-
filter
¶
-
filterfalse
¶
-
getcwd
¶
-
getcwdb
¶
-
html_entities
¶
-
html_parser
¶
-
intern
¶
-
map
¶
-
queue
¶
-
range
¶
-
reduce
¶
-
reload_module
¶
-
reprlib
¶
-
shlex_quote
¶
-
socketserver
¶
-
tkinter
¶
-
tkinter_colorchooser
¶
-
tkinter_commondialog
¶
-
tkinter_constants
¶
-
tkinter_dialog
¶
-
tkinter_dnd
¶
-
tkinter_filedialog
¶
-
tkinter_font
¶
-
tkinter_messagebox
¶
-
tkinter_scrolledtext
¶
-
tkinter_simpledialog
¶
-
tkinter_tix
¶
-
tkinter_tkfiledialog
¶
-
tkinter_tksimpledialog
¶
-
tkinter_ttk
¶
-
urllib
¶
-
urllib_error
¶
-
urllib_parse
¶
-
urllib_robotparser
¶
-
xmlrpc_client
¶
-
xmlrpc_server
¶
-
xrange
¶
-
zip
¶
-
zip_longest
¶
-
-
class
PyFoam.ThirdParty.six.
_SixMetaPathImporter
(six_module_name)[source]¶ Bases:
object
A meta path importer to import six.moves and its submodules.
This class implements a PEP302 finder and loader. It should be compatible with Python 2.5 and all existing versions of Python3
-
_SixMetaPathImporter__get_module
(fullname)¶
-
__dict__
= mappingproxy({'__weakref__': <attribute '__weakref__' of '_SixMetaPathImporter' objects>, '__init__': <function _SixMetaPathImporter.__init__>, '_get_module': <function _SixMetaPathImporter._get_module>, 'find_module': <function _SixMetaPathImporter.find_module>, 'is_package': <function _SixMetaPathImporter.is_package>, 'get_code': <function _SixMetaPathImporter.get_code>, '__module__': 'PyFoam.ThirdParty.six', '_SixMetaPathImporter__get_module': <function _SixMetaPathImporter.__get_module>, '_add_module': <function _SixMetaPathImporter._add_module>, 'load_module': <function _SixMetaPathImporter.load_module>, '__dict__': <attribute '__dict__' of '_SixMetaPathImporter' objects>, '__doc__': '\n A meta path importer to import six.moves and its submodules.\n\n This class implements a PEP302 finder and loader. It should be compatible\n with Python 2.5 and all existing versions of Python3\n ', 'get_source': <function _SixMetaPathImporter.get_code>})¶
-
__module__
= 'PyFoam.ThirdParty.six'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
get_source
(fullname)¶ Return None
Required, if is_package is implemented
-
-
PyFoam.ThirdParty.six.
_import_module
(name)[source]¶ Import module, returning the module after the last dot.
-
PyFoam.ThirdParty.six.
add_metaclass
(metaclass)[source]¶ Class decorator for creating a class with a metaclass.
-
PyFoam.ThirdParty.six.
get_unbound_function
(unbound)[source]¶ Get the function out of a possibly unbound function
-
PyFoam.ThirdParty.six.
int2byte
()¶ S.pack(v1, v2, ...) -> bytes
Return a bytes object containing values v1, v2, ... packed according to the format string S.format. See help(struct) for more on format strings.
-
PyFoam.ThirdParty.six.
iteritems
(d, **kw)[source]¶ Return an iterator over the (key, value) pairs of a dictionary.
-
PyFoam.ThirdParty.six.
iterlists
(d, **kw)[source]¶ Return an iterator over the (key, [values]) pairs of a dictionary.
-
PyFoam.ThirdParty.six.
itervalues
(d, **kw)[source]¶ Return an iterator over the values of a dictionary.