%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/utils/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/utils/compat.pyc

�
���^c@@s�dZddlmZmZmZddlZddlZddlZddlZddl	Z
d�Zd�Zd�Z
d�ZdS(u#
Compatibility functions for utils
i(tabsolute_importtprint_functiontunicode_literalsNcC@sBtj|}t|d�s>t|dtjj|j��ndS(uN
    Compatibility helper function to make __utils__ available on demand.
    u	__utils__N(tsystmodulesthasattrtsetattrtsalttloadertutilst__opts__(tnametmod((s5/usr/lib/python2.7/site-packages/salt/utils/compat.pytpack_dunders
cC@sFd�}z,tj}|tjtj<tj|�}Wd|t_X|S(u�
    Compatibility helper function to allow copy.deepcopy copy bound methods
    which is broken on Python 2.6, due to the following bug:
    https://bugs.python.org/issue1515

    Warnings:
        - This method will mutate the global deepcopy dispatcher, which means that
        this function is NOT threadsafe!

        - Not Py3 compatible. The intended use case is deepcopy compat for Py2.6

    cS@s+t|�|jtj|j|�|j�S(N(ttypetim_functcopytdeepcopytim_selftim_class(txtmemo((s5/usr/lib/python2.7/site-packages/salt/utils/compat.pyt_deepcopy_method)sN(Rt_deepcopy_dispatchttypest
MethodTypeR(RRtpre_dispatchtret((s5/usr/lib/python2.7/site-packages/salt/utils/compat.pytdeepcopy_bounds
		
cC@s||k||kS(u�
    Compatibility helper function to replace the ``cmp`` function from Python 2. The
    ``cmp`` function is no longer available in Python 3.

    cmp(x, y) -> integer

    Return negative if x<y, zero if x==y, positive if x>y.
    ((Rty((s5/usr/lib/python2.7/site-packages/salt/utils/compat.pytcmp4s	cC@s0ytj|�SWntk
r+t|�SXdS(uX
    Compatibility helper function to replace the ``reload`` builtin from Python 2.
    N(t	importlibtreloadtAttributeError(R((s5/usr/lib/python2.7/site-packages/salt/utils/compat.pyR @s
(t__doc__t
__future__RRRRRRRtsalt.loaderRR
RRR (((s5/usr/lib/python2.7/site-packages/salt/utils/compat.pyt<module>s			

Zerion Mini Shell 1.0