/opt/imunify360/venv/lib/python3.11/site-packages/babel/__pycache__
NameSizeModeActions
core.cpython-311.pyc520750644editdlrm
dates.cpython-311.pyc856990644editdlrm
languages.cpython-311.pyc43360644editdlrm
lists.cpython-311.pyc39290644editdlrm
localedata.cpython-311.pyc136440644editdlrm
numbers.cpython-311.pyc548870644editdlrm
plural.cpython-311.pyc356090644editdlrm
support.cpython-311.pyc368000644editdlrm
units.cpython-311.pyc120540644editdlrm
util.cpython-311.pyc118270644editdlrm
__init__.cpython-311.pyc10950644editdlrm
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/babel/__pycache__/util.cpython-311.pyc (11827B)
§ ¹�Qù3<®ãóà—dZddlmZddlZddlZddlZddlZddlZddlZddl m Z m Z ddl m Z mZmZddlmZmZe¦«Zed¦«Zd,d „Zejd ej¦«Zd-d„Zejd¦«Zd.d/d„Zd0d„ZGd„dej¦«Zd1d2d%„Zej Z!Gd&„d'ej"¦«Z#ej$Z$ej%Z%ej&Z&ej'Z'ej(Z(ej)Z)ej*Z*d3d+„Z+dS)4z® babel.util ~~~~~~~~~~ Various utility classes and functions. :copyright: (c) 2013-2023 by the Babel Team. :license: BSD, see LICENSE for more details. é)Ú annotationsN)Ú GeneratorÚIterable)ÚIOÚAnyÚTypeVar)ÚdatesÚ localtimeÚ_TÚiterableú Iterable[_T]ÚreturnúGenerator[_T, None, None]c#ó„K—t¦«}t|¦«D]}||vr|V—| |¦«Œ dS)a–Yield all items in an iterable collection that are distinct. Unlike when using sets for a similar effect, the original ordering of the items in the collection is preserved by this function. >>> print(list(distinct([1, 2, 1, 3, 4, 4]))) [1, 2, 3, 4] >>> print(list(distinct('foobar'))) ['f', 'o', 'b', 'a', 'r'] :param iterable: the iterable collection providing the data N)ÚsetÚiterÚadd)r ÚseenÚitems új/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/babel/util.pyÚdistinctrsTèè€õ ‰5Œ5€DÝ�X‘”ððˆØ �tРР؈JˆJˆJØ �HŠH�T‰NŒNˆNøððós([ \t\f]* \# .* coding[=:][ \t]*([-\w.]+)Úfpú IO[bytes]ú str | NonecóÈ—| ¦«}| d¦« | ¦«}| tj¦«}|r!|t tj¦«d…}t |¦«}|sy ddl }|  |  d¦«¦«| ¦«}t |¦«}n#tttf$rYnwxYw|r[|rA| d¦«  d¦«}|dkrtd|›d�¦«‚ | |¦«dS|r=| d¦«  d¦«| |¦«S | |¦«dS#| |¦«wxYw)a/Deduce the encoding of a source file from magic comment. It does this in the same way as the `Python interpreter`__ .. __: https://docs.python.org/3.4/reference/lexical_analysis.html#encoding-declarations The ``fp`` argument should be a seekable file object. (From Jeff Dairiki) rNúlatin-1ézutf-8zencoding problem: z with BOM)ÚtellÚseekÚreadlineÚ startswithÚcodecsÚBOM_UTF8ÚlenÚPYTHON_MAGIC_COMMENT_reÚmatchÚastÚparseÚdecodeÚ ImportErrorÚ SyntaxErrorÚUnicodeEncodeErrorÚgroup)rÚposÚline1Úhas_bomÚmr(Úline2Úmagic_comment_encodings rÚparse_encodingr55sÓ€ð �'Š'‰)Œ)€C؇G‚GˆA�J„J€Jð Ø— ’ ‘ ” ˆØ×"Ò"¥6¤?Ñ3Ô3ˆØ ð 1Ø�#�fœoÑ.Ô.Ð/Ð/Ô0ˆEå #× )Ò )¨%Ñ 0Ô 0ˆØð 9ð 9Ø� � � Ø— ’ ˜%Ÿ,š, yÑ1Ô1Ñ2Ô2Ð2🠚 ™ œ �Ý+×1Ò1°%Ñ8Ô8��øõ ¥Õ.@ÐAð ð ð ð �ð  øøøð ð Øð ^Ø)*¯ª°©¬×):Ò):¸9Ñ)EÔ)EÐ&Ø)¨WÒ4Ð4Ý%Ð&\Ð;QÐ&\Ð&\Ð&\Ñ]Ô]Ð]Øð �Š�‰ Œ ˆ ˆ ˆ ð ð Ø—7’7˜1‘:”:×$Ò$ YÑ/Ô/ð �Š�‰ Œ ˆ ˆ ðà �Š�‰ Œ ˆ ˆ ˆ øˆ�Š�‰ Œ ˆ ˆ øøøs7«A2G Â,C9à /G Ã9DÄG ÄDÄAG Å3)G Ç G!z'from\s+__future__\s+import\s+\(*(.+)\)*rÚencodingÚstrÚintcó|—ddl}| ¦«}| d¦«d} | ¦« |¦«}t jdd|¦«}t jdd|¦«}t jdd|¦«}t |¦«D]V}d „|  d ¦«  d ¦«D¦«}|D]}t||d¦«} | r || j z}Œ ŒW | |¦«n#| |¦«wxYw|S) zRParse the compiler flags by :mod:`__future__` from the given Python code. rNzimport\s*\([\r\n]+zimport (z ,\s*[\r\n]+z, z \\\s*[\r\n]+ú có\—g|])}| ¦« d¦«‘Œ*S)z())Ústrip)Ú.0Úxs rú z&parse_future_flags..s,€ÐJÐJÐJ¨q�Q—W’W‘Y”Y—_’_ TÑ*Ô*ÐJÐJÐJrrú,) Ú __future__rr Úreadr*ÚreÚsubÚPYTHON_FUTURE_IMPORT_reÚfinditerr.ÚsplitÚgetattrÚ compiler_flag) rr6rAr/ÚflagsÚbodyr2ÚnamesÚnameÚfeatures rÚparse_future_flagsrOisA€ðÐÐÐØ �'Š'‰)Œ)€C؇G‚GˆA�J„J€JØ €EðØ�wŠw‰yŒy×Ò Ñ)Ô)ˆõ ŒvÐ+¨Z¸Ñ>Ô>ˆåŒv�n d¨DÑ1Ô1ˆåŒv�o s¨DÑ1Ô1ˆå(×1Ò1°$Ñ7Ô7ð 3ð 3ˆAØJÐJ°A·G²G¸A±J´J×4DÒ4DÀSÑ4IÔ4IÐJÑJÔJˆEØð 3ð 3�Ý! *¨d°DÑ9Ô9�Øð3ؘWÔ2Ñ2�Eøð 3ð 3ð �Š�‰ Œ ˆ ˆ øˆ�Š�‰ Œ ˆ ˆ øøøØ €Ls ±CD"Ä"D9ÚpatternÚfilenameÚboolcó"—dddddddœ}| d¦«rdg}|d d …}n%| d ¦«rdg}|d d …}ng}ttjd |¦«¦«D]O\}}|d zr| ||¦«Œ&|r'| tj|¦«¦«ŒPtjd |¦«›d�| tj d¦«¦«}|d uS)aøExtended pathname pattern matching. This function is similar to what is provided by the ``fnmatch`` module in the Python standard library, but: * can match complete (relative or absolute) path names, and not just file names, and * also supports a convenience pattern ("**") to match files at any directory level. Examples: >>> pathmatch('**.py', 'bar.py') True >>> pathmatch('**.py', 'foo/bar/baz.py') True >>> pathmatch('**.py', 'templates/index.html') False >>> pathmatch('./foo/**.py', 'foo/bar/baz.py') True >>> pathmatch('./foo/**.py', 'bar/baz.py') False >>> pathmatch('^foo/**.py', 'foo/bar/baz.py') True >>> pathmatch('^foo/**.py', 'bar/baz.py') False >>> pathmatch('**/templates/*.html', 'templates/index.html') True >>> pathmatch('**/templates/*.html', 'templates/foo/bar.html') False :param pattern: the glob pattern :param filename: the path name of the file to match against z[^/]z[^/]/z[^/]+z[^/]+/z (?:.+/)*?z(?:.+/)*?[^/]+)ú?z?/Ú*z*/z**/z**ú^rNz./éz ([?*]+/?)Úú$ú/) r"Ú enumeraterCrGÚappendÚescaper'ÚjoinÚreplaceÚosÚsep)rPrQÚsymbolsÚbufÚidxÚpartr's rÚ pathmatchrf‰s2€ðNØØ ØØØð ð€Gð×Ò˜#ÑÔð؈eˆØ˜!˜"˜"”+ˆˆØ × Ò ˜DÑ !Ô !ð؈eˆØ˜!˜"˜"”+ˆˆàˆå�rœx¨ °WÑ=Ô=Ñ>Ô>ð(ð(‰ ˆˆTØ �‰7ð (Ø �JŠJ�w˜t”}Ñ %Ô %Ð %Ð %Ø ð (Ø �JŠJ•r”y ‘”Ñ 'Ô 'Ð 'øÝ ŒH˜Ÿš ™ œ Ð'Ð'Ð'¨×)9Ò)9½"¼&À#Ñ)FÔ)FÑ GÔ G€EØ ˜Ð Ðrcó.—eZdZejd¦«ZdS)Ú TextWrapperz((\s+|(?<=[\w\!\"\'\&\.\,\?])-{2,}(?=\w))N)Ú__name__Ú __module__Ú __qualname__rCÚcompileÚ wordsep_re©rrrhrhÊs&€€€€€Ø�”ð /ñô€J€J€JrrhéFrXÚtextÚwidthÚinitial_indentÚsubsequent_indentú list[str]cóR—t|||d¬¦«}| |¦«S)aØSimple wrapper around the ``textwrap.wrap`` function in the standard library. This version does not wrap lines on hyphens in words. :param text: the text to wrap :param width: the maximum line width :param initial_indent: string that will be prepended to the first line of wrapped output :param subsequent_indent: string that will be prepended to all lines save the first of wrapped output F)rqrrrsÚbreak_long_words)rhÚwrap)rprqrrrsÚwrappers rÚwraptextryÑs6€õ °nØ,=Ø+0ð2ñ2ô2€Gð �<Š<˜Ñ Ô ÐrcóD—eZdZdZddd „Zdd „Zdd „Zdd„Zdd„Zdd„Z dS)ÚFixedOffsetTimezonez&Fixed offset in minutes east from UTC.NÚoffsetÚfloatrMrrÚNonecóV—tj|¬¦«|_|€d|z}||_dS)N)Úminutesz Etc/GMT%+d)ÚdatetimeÚ timedeltaÚ_offsetÚzone)Úselfr|rMs rÚ__init__zFixedOffsetTimezone.__init__és1€åÔ)°&Ð9Ñ9Ô9ˆŒ Ø ˆ<Ø &Ñ(ˆD؈Œ ˆ ˆ rr7có—|jS©N©r„©r…s rÚ__str__zFixedOffsetTimezone.__str__ðó €ØŒyÐrcó(—d|j›d|j›d�S)Nz)r„rƒrŠs rÚ__repr__zFixedOffsetTimezone.__repr__ós€Ø< ¤ Ð<Ð<¨T¬\Ð<Ð<Ð<Ðr±s!ðððð#Ð"Ð"Ð"Ð"Ð"à € € € ØÐÐÐØ€€€Ø € € € Ø € € € Ø€€€Ø/Ð/Ð/Ð/Ð/Ð/Ð/Ð/Ø#Ð#Ð#Ð#Ð#Ð#Ð#Ð#Ð#Ð#à"Ð"Ð"Ð"Ð"Ð"Ð"Ð"à ˆ&‰(Œ(€à €WˆT�]„]€ððððð*%˜"œ*Ø0°"´*ñ>ô>Ðð-ð-ð-ð-ð`%˜"œ*Ø.ñ0ô0Ððððððð@>ð>ð>ð>ðBðððð�(Ô&ñôððððððð$ Ô€ððððð˜(œ/ñôðð: „i€Ø Œ-€ØÔ'€ Ø Ô € Ø Ô € Ø Ô €Ø„~€ððððððr