ok

Mini Shell

Direktori : /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__/misc.cpython-311.pyc

�

�܋f�����dZddlmZejr^ddlmZddlmZmZm	Z	ddl
mZm
Zddl
Z
e
jZeZddlmZddlmZdd	lmZdd
lmZddlmZddl m!Z!e"��Z#e#fd
�Z
gd�Z$dSddl%Z%e%jZe%jZe%j	Z	e%jZe%jZe%jZe%jZe%jZe%j
Z
e%jZe%jZej&re%jZe%jZgZ$dSdd
lmZddlmZddgZ$dS)a�
A module that brings in equivalents of various modified Python 3 builtins
into Py2. Has no effect on Py3.

The builtin functions are:

- ``ascii`` (from Py2's future_builtins module)
- ``hex`` (from Py2's future_builtins module)
- ``oct`` (from Py2's future_builtins module)
- ``chr`` (equivalent to ``unichr`` on Py2)
- ``input`` (equivalent to ``raw_input`` on Py2)
- ``next`` (calls ``__next__`` if it exists, else ``next`` method)
- ``open`` (equivalent to io.open on Py2)
- ``super`` (backport of Py3's magic zero-argument super() function
- ``round`` (new "Banker's Rounding" behaviour from Py3)
- ``max`` (new default option from Py3.4)
- ``min`` (new default option from Py3.4)

``isinstance`` is also currently exported for backwards compatibility
with v0.8.2, although this has been deprecated since v0.9.


input()
-------
Like the new ``input()`` function from Python 3 (without eval()), except
that it returns bytes. Equivalent to Python 2's ``raw_input()``.

Warning: By default, importing this module *removes* the old Python 2
input() function entirely from ``__builtin__`` for safety. This is
because forgetting to import the new ``input`` from ``future`` might
otherwise lead to a security vulnerability (shell injection) on Python 2.

To restore it, you can retrieve it yourself from
``__builtin__._old_input``.

Fortunately, ``input()`` seems to be seldom used in the wild in Python
2...

�)�utils)�open)�ascii�oct�hex)�unichr�powN)�newnext)�newround)�newsuper)�newmax)�newmin)�newintc��t|t��rt|��}t|t��rt|��}t|t��rt|��}	|tkrt	||��St	|||��S#t
$r7|tkrt	|dz|��cYSt	|dz||��cYSwxYw)z�
        pow(x, y[, z]) -> number

        With two arguments, equivalent to x**y.  With three arguments,
        equivalent to (x**y) % z, but may be more efficient (e.g. for ints).
        y)�
isinstancer�long�	_SENTINEL�_builtin_pow�
ValueError)�x�y�zs   �e/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/future/builtins/misc.pyr	r	Fs����a�� � �	��Q���A��a�� � �	��Q���A��a�� � �	��Q���A�		0��I�~�~�#�A�q�)�)�)�#�A�q�!�,�,�,���	0�	0�	0��I�~�~�#�A�b�D�!�,�,�,�,�,�#�A�b�D�!�Q�/�/�/�/�/�		0���s�.B�	B�(C�C�C)
r�chrr�inputr�nextrrr	�round�super�max�minr r)'�__doc__�futurer�PY2�ior�future_builtinsrrr�__builtin__rrr	rr�	raw_inputr�future.builtins.newnextr
r�future.builtins.newroundrr�future.builtins.newsuperrr�future.builtins.new_min_maxr
rrr �future.types.newintr�objectr�__all__�builtins�	PY34_PLUS��r�<module>r3s���&�&�P������	�9�P!�������/�/�/�/�/�/�/�/�/�/�>�>�>�>�>�>�>�>������'�J�
�E�7�7�7�7�7�7�:�:�:�:�:�:�:�:�:�:�:�:�9�9�9�9�9�9�9�9�9�9�9�9�*�*�*�*�*�*�����I��0�0�0�0�<>�>�>�G�G�G��O�O�O��N�E�
�,�C�
�,�C��N�E��=�D��$�J�
�,�C��=�D�
�,�C��N�E��N�E���!��l���l������=�=�=�=�=�=�=�=�=�=�=�=��%�.���r2

Zerion Mini Shell 1.0