%PDF- %PDF-
| Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/utils/ |
| Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/utils/functools.pyc |
�
���^c @@ s] d Z d d l m Z m Z m Z d d l Z d d l m Z d e d � Z
d d � Z d S( u-
Utility functions to modify other functions
i ( t absolute_importt unicode_literalst print_functionN( t sixc C@ s� | d k r | j } n | rC | j j � } | j | � | } n t j | j | d | j d | d | j �} | j
j | j
� | S( u
Redefine (clone) a function under a different globals() namespace scope
preserve_context:
Allow keeping the context taken from orignal namespace,
and extend it with globals() taken from
new targetted namespace.
t namet argdefst closureN( t Nonet __defaults__t __globals__t copyt updatet typest FunctionTypet __code__t __name__t __closure__t __dict__( t functiont global_dictt defaultst preserve_contextt _global_dictt new_namespaced_function( ( s8 /usr/lib/python2.7/site-packages/salt/utils/functools.pyt namespaced_function s
c C@ s� t j | j | j t | � | j | j � } | j j | j � | rd t | t
j � rd | | _ n. | j
} d j | � } | | j p� d | _ | S( u
Copy a function
u'