HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //proc/thread-self/root/lib/python3.10/importlib/metadata/__pycache__/_text.cpython-310.pyc
o

p̦i��@s(ddlZddlmZGdd�de�ZdS)�N�)�method_cachecsreZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Z�fdd
�Z	dd�Z
e�fdd��Zdd�Z
ddd�Z�ZS)�
FoldedCasea{
    A case insensitive string class; behaves just like str
    except compares equal when the only variation is case.

    >>> s = FoldedCase('hello world')

    >>> s == 'Hello World'
    True

    >>> 'Hello World' == s
    True

    >>> s != 'Hello World'
    False

    >>> s.index('O')
    4

    >>> s.split('O')
    ['hell', ' w', 'rld']

    >>> sorted(map(FoldedCase, ['GAMMA', 'alpha', 'Beta']))
    ['alpha', 'Beta', 'GAMMA']

    Sequence membership is straightforward.

    >>> "Hello World" in [s]
    True
    >>> s in ["Hello World"]
    True

    You may test for set inclusion, but candidate and elements
    must both be folded.

    >>> FoldedCase("Hello World") in {s}
    True
    >>> s in {FoldedCase("Hello World")}
    True

    String inclusion works as long as the FoldedCase object
    is on the right.

    >>> "hello" in FoldedCase("Hello World")
    True

    But not if the FoldedCase object is on the left:

    >>> FoldedCase('hello') in 'Hello World'
    False

    In that case, use in_:

    >>> FoldedCase('hello').in_('Hello World')
    True

    >>> FoldedCase('hello') > FoldedCase('Hello')
    False
    cCs|��|��kS�N��lower��self�other�r�//usr/lib/python3.10/importlib/metadata/_text.py�__lt__C�zFoldedCase.__lt__cCs|��|��kSrrrrrr�__gt__FrzFoldedCase.__gt__cCs|��|��kSrrrrrr�__eq__IrzFoldedCase.__eq__cCs|��|��kSrrrrrr�__ne__LrzFoldedCase.__ne__cCst|���Sr)�hashr�r	rrr�__hash__OszFoldedCase.__hash__cstt|����|���Sr)�superrr�__contains__r��	__class__rrrRszFoldedCase.__contains__cCs|t|�vS)zDoes self appear in other?)rrrrr�in_UszFoldedCase.in_cstt|���Sr)rrrrrrrrZszFoldedCase.lowercCs|���|���Sr)r�index)r	�subrrrr^szFoldedCase.index� rcCs t�t�|�tj�}|�||�Sr)�re�compile�escape�I�split)r	�splitter�maxsplit�patternrrrr!aszFoldedCase.split)rr)�__name__�
__module__�__qualname__�__doc__r
rrrrrrrrrr!�
__classcell__rrrrrs;r)r�
_functoolsr�strrrrrr�<module>s