2bi' ( S r SSKrSSKJr \R " S5 r\R " S\R \R - \R - 5 r \R " S\R \R - \R - 5 r\R " S\R 5 r " S S \5 r " S S\5 rS S jrS!S jrS!S jrS!S jrS rS rS rS rS r0 rS rS rS"S jrS#S jr " S S5 r S r!S r"S r# " S S\5 r$g)$z pygments.util ~~~~~~~~~~~~~ Utility functions. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) TextIOWrapperz[/\\ ]z ]*> z<(.+?)(\s.*?)?>.*?z\s*<\?xml[^>]*\?>c \ rS rSrSrSrg) ClassNotFound zCRaised if one of the lookup functions didn't find a matching class. N__name__ __module____qualname____firstlineno____doc____static_attributes__r ڋ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/pygments/util.pyr r s Mr r c \ rS rSrSrSrg)OptionError" zw This exception will be raised by all option processing functions if the type or value of the argument is not correct. r Nr r r r r r " s r r c U R X5 nU( a UR 5 nXR; a0 [ SU< SSR [ [ U5 5 < 35 eU$ )zq If the key `optname` from the dictionary is not in the sequence `allowed`, raise an error, otherwise return it. zValue for option z must be one of z, )getlowerr joinmapstr)optionsoptnamealloweddefaultnormcasestrings r get_choice_optr ( sU [[ *F "DIIc#w.?$@B C CMr c ` U R X5 n[ U[ 5 ( a U$ [ U[ 5 ( a [ U5 $ [ U[ 5 ( d [ SU< SU< S35 eUR 5 S; a gUR 5 S; a g[ SU< SU< S35 e) 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_optr1 6 s [[ *F&$ FC F| $ $$g/ 0 0 5 5 6 6$g/ 0 0r c U R X5 n [ U5 $ ! [ a [ SU< SU< S35 e[ a [ SU< SU< S35 ef = f)z?As :func:`get_bool_opt`, but interpret the value as an integer.r" r# z ; you must give an integer valuer, )r r/ TypeErrorr ValueErrorr0 s r get_int_optr5 U sf [[ *F 06{ 0$g/ 0 0 0$g/ 0 00s