Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/future/builtins/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/future/builtins/__pycache__/disabled.cpython-311.pyc

�

�܋f=���dZddlmZmZmZddlmZgd�Zd�Zej	seD]Z
ee
��e��e
<�eZdSgZdS)a�
This disables builtin functions (and one exception class) which are
removed from Python 3.3.

This module is designed to be used like this::

    from future.builtins.disabled import *

This disables the following obsolete Py2 builtin functions::

    apply, cmp, coerce, execfile, file, input, long,
    raw_input, reduce, reload, unicode, xrange

We don't hack __builtin__, which is very fragile because it contaminates
imported modules too. Instead, we just create new functions with
the same names as the obsolete builtins from Python 2 which raise
NameError exceptions when called.

Note that both ``input()`` and ``raw_input()`` are among the disabled
functions (in this module). Although ``input()`` exists as a builtin in
Python 3, the Python 2 ``input()`` builtin is unsafe to use because it
can lead to shell injection. Therefore we shadow it by default upon ``from
future.builtins.disabled import *``, in case someone forgets to import our
replacement ``input()`` somehow and expects Python 3 semantics.

See the ``future.builtins.misc`` module for a working version of
``input`` with Python 3 semantics.

(Note that callable() is not among the functions disabled; this was
reintroduced into Python 3.2.)

This exception class is also disabled:

    StandardError

�)�division�absolute_import�print_function)�utils)�apply�chr�cmp�coerce�execfile�file�input�long�	raw_input�reduce�reload�unicode�xrange�
StandardErrorc����fd�}|S)z2
    Returns a function that cannot be called
    c�H��td�������)zy
        A function disabled by the ``future`` module. This function is
        no longer a builtin in Python 3.
        z)obsolete Python 2 builtin {0} is disabled)�	NameError�format)�args�kwargs�names  ��i/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/future/builtins/disabled.py�disabledz#disabled_function.<locals>.disabled4s"���
�C�J�J�4�P�P�Q�Q�Q��)rrs` r�disabled_functionr 0s(���R�R�R�R�R��OrN)
�__doc__�
__future__rrr�futurer�OBSOLETE_BUILTINSr �PY3�fname�locals�__all__rrr�<module>r)s���#�#�JA�@�@�@�@�@�@�@�@�@�������;�;�;��

�
�
�
�y��"�3�3��+�+�E�2�2���������G�G�G��G�G�Gr

Hacked By AnonymousFox1.0, Coded By AnonymousFox