403Webshell
Server IP : 146.190.157.162  /  Your IP : 216.73.216.238
Web Server : Apache
System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64
User : businessweek ( 639)
PHP Version : 8.2.10-2ubuntu2.2
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/keyring/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/keyring/__pycache__/_properties_compat.cpython-311.pyc
�

5�d.��:�Gd�d��ZGd�d��ZdS)c� �eZdZdZd�Zdd�ZdS)�NonDataPropertya�Much like the property builtin, but only implements __get__,
    making it a non-data property, and can be subsequently reset.

    See http://users.rcn.com/python/download/Descriptor.htm for more
    information.

    >>> class X(object):
    ...   @NonDataProperty
    ...   def foo(self):
    ...     return 3
    >>> x = X()
    >>> x.foo
    3
    >>> x.foo = 4
    >>> x.foo
    4
    c�^�|�
Jd���t|��s
Jd���||_dS)Nzfget cannot be nonezfget must be callable)�callable�fget)�selfrs  �</usr/lib/python3/dist-packages/keyring/_properties_compat.py�__init__zNonDataProperty.__init__s=�����!6������~�~�6�6�6�6�6�6���	�	�	�Nc�4�|�|S|�|��S�N)r)r�obj�objtypes   r�__get__zNonDataProperty.__get__s���;��K��y�y��~�~�r
r)�__name__�
__module__�__qualname__�__doc__r	r�r
rrrsA��������$���
�����r
rc�`�eZdZdZGd�de��Zd
d�Zd
d�Zd�Zd�Z	e
d	���ZdS)�
classpropertya�
    Like @property but applies at the class level.


    >>> class X(metaclass=classproperty.Meta):
    ...   val = None
    ...   @classproperty
    ...   def foo(cls):
    ...     return cls.val
    ...   @foo.setter
    ...   def foo(cls, val):
    ...     cls.val = val
    >>> X.foo
    >>> X.foo = 3
    >>> X.foo
    3
    >>> x = X()
    >>> x.foo
    3
    >>> X.foo = 4
    >>> x.foo
    4

    Setting the property on an instance affects the class.

    >>> x.foo = 5
    >>> x.foo
    5
    >>> X.foo
    5
    >>> vars(x)
    {}
    >>> X().foo
    5

    Attempting to set an attribute where no setter was defined
    results in an AttributeError:

    >>> class GetOnly(metaclass=classproperty.Meta):
    ...   @classproperty
    ...   def foo(cls):
    ...     return 'bar'
    >>> GetOnly.foo = 3
    Traceback (most recent call last):
    ...
    AttributeError: can't set attribute

    It is also possible to wrap a classmethod or staticmethod in
    a classproperty.

    >>> class Static(metaclass=classproperty.Meta):
    ...   @classproperty
    ...   @classmethod
    ...   def foo(cls):
    ...     return 'foo'
    ...   @classproperty
    ...   @staticmethod
    ...   def bar():
    ...     return 'bar'
    >>> Static.foo
    'foo'
    >>> Static.bar
    'bar'

    *Legacy*

    For compatibility, if the metaclass isn't specified, the
    legacy behavior will be invoked.

    >>> class X:
    ...   val = None
    ...   @classproperty
    ...   def foo(cls):
    ...     return cls.val
    ...   @foo.setter
    ...   def foo(cls, val):
    ...     cls.val = val
    >>> X.foo
    >>> X.foo = 3
    >>> X.foo
    3
    >>> x = X()
    >>> x.foo
    3
    >>> X.foo = 4
    >>> x.foo
    4

    Note, because the metaclass was not specified, setting
    a value on an instance does not have the intended effect.

    >>> x.foo = 5
    >>> x.foo
    5
    >>> X.foo  # should be 5
    4
    >>> vars(x)  # should be empty
    {'foo': 5}
    >>> X().foo  # should be 5
    4
    c���eZdZ�fd�Z�xZS)�classproperty.Metac����|j�|d��}t|��tur|�||��St���||��Sr)�__dict__�get�typer�__set__�super�__setattr__)r�key�valuer
�	__class__s    �rrzclassproperty.Meta.__setattr__�sY����-�#�#�C��.�.�C��C�y�y�M�)�)��{�{�4��/�/�/��7�7�&�&�s�E�2�2�2r
)rrrr�
__classcell__)r"s@r�Metar�s8�������	3�	3�	3�	3�	3�	3�	3�	3�	3r
r$Nc�|�|�|��|_||_|o|�|��dSdSr)�_ensure_methodr�fset�setter)rrr's   rr	zclassproperty.__init__�sD���'�'��-�-��	���	��"����T�"�"�"�"�"�"�"�"r
c�H�|j�d|����Sr)rr)r�instance�owners   rrzclassproperty.__get__�s"��-�t�y� � ��u�-�-�/�/�/r
c���|jstd���t|��tjurt|��}|j�d|��|��S)Nzcan't set attribute)r'�AttributeErrorrrr$r)rr+r!s   rrzclassproperty.__set__�s\���y�	8� �!6�7�7�7���;�;�m�0�0�0���K�K�E�-�t�y� � ��u�-�-�e�4�4�4r
c�:�|�|��|_|Sr)r&r')rr's  rr(zclassproperty.setter�s���'�'��-�-��	��r
c�b�t|ttf��}|rt|��n|S)z=
        Ensure fn is a classmethod or staticmethod.
        )�
isinstance�classmethod�staticmethod)�cls�fn�needs_methods   rr&zclassproperty._ensure_method�s0��
&�b�;��*E�F�F�F��".�6�{�2����B�6r
r)rrrrrr$r	rrr(r1r&rr
rrr"s�������d�d�L3�3�3�3�3�t�3�3�3�#�#�#�#�
0�0�0�0�5�5�5�����7�7��[�7�7�7r
rN)rrrr
r�<module>r6si����������<G7�G7�G7�G7�G7�G7�G7�G7�G7�G7r

Youez - 2016 - github.com/yon3zu
LinuXploit