HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/usr/local/lib/python3.6/site-packages/backports/configparser/compat.py
import types
import io as _io


def text_encoding(encoding, stacklevel=2):
    """
    Stubbed version of io.text_encoding as found in Python 3.10
    """
    return encoding


def copy_module(mod, **defaults):
    copy = types.ModuleType(mod.__name__, doc=mod.__doc__)
    vars(copy).update(defaults)
    vars(copy).update(vars(mod))
    return copy


io = copy_module(_io, text_encoding=text_encoding)