API

PyCompatLayer - Compatibility layer for Python.

It make all versions of Python behaving as the latest version of Python 3. It will allow to add compatibility with all versions of Python without effort. It is still under development, not all functions are supported.

pycompatlayer.fix_all(override_debug=False, override_all=False)

Activate the full compatibility.

pycompatlayer.fix_base(fix_environ)

Activate the base compatibility.

pycompatlayer.fix_builtins(override_debug=False)

Activate the builtins compatibility.

pycompatlayer.fix_subprocess(override_debug=False, override_exception=False)

Activate the subprocess compatibility.

pycompatlayer.set_default_encoding(encoding='utf-8')