six_ext – Python 2 and 3 compatibility layer

Extensions to six python 2 and 3 compatibility layer.

exception pyhetdex.tools.six_ext.ConfigFileError[source]

Configuration file not found

pyhetdex.tools.six_ext.FileOpenError

File not found

alias of IOError

pyhetdex.tools.six_ext.SubprocessExeError

subprocess.Popen does not find the file to execute

alias of OSError

pyhetdex.tools.six_ext.mock

This is to be imported as a standard module.

Examples

>>> from pyhetdex.tools.six_ext import mock
>>> # or if :mod:`~pyhetdex.tools.six_ext` has already been imported somewhere
>>> # in the code
>>> from six.moves import mock