HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/zipp/__pycache__/_functools.cpython-310.pyc
o

;j�@s&ddlZddlZdd�Zddd�ZdS)�Ncs(t�dd��t�����fdd��}|S)ze
    Wrap a method such that when it is called, the args and kwargs are
    saved on the method.
    �args_and_kwargszargs kwargscs6d�j}�||�}t|||��|g|�Ri|��S)NZ_saved_)�__name__�setattr)�self�args�kwargsZ	attr_name�attr�r�method��C/opt/saltstack/salt/lib/python3.10/site-packages/zipp/_functools.py�wrapper
s

z!save_method_args.<locals>.wrapper)�collections�
namedtuple�	functools�wraps)r
r
rr	r�save_method_argssrcCs|dur|S|S)zT
    >>> none_as(None, 'foo')
    'foo'
    >>> none_as('bar', 'foo')
    'bar'
    Nr)�valueZreplacementrrr�none_assr)N)rrrrrrrr�<module>s