/opt/imunify360/venv/lib/python3.11/site-packages/__pycache__
NameSizeModeActions
distro.cpython-311.pyc515050644editdlrm
pam.cpython-311.pyc101470644editdlrm
peewee.cpython-311.pyc4865020644editdlrm
phpserialize.cpython-311.pyc240650644editdlrm
pwiz.cpython-311.pyc127610644editdlrm
secureio.cpython-311.pyc300790644editdlrm
six.cpython-311.pyc464360644editdlrm
speaklater.cpython-311.pyc91610644editdlrm
typing_extensions.cpython-311.pyc1827110644editdlrm
_pyrsistent_version.cpython-311.pyc2450644editdlrm
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/__pycache__/speaklater.cpython-311.pyc (9161B)
§ ’CÁË·?¢ãón—dZd„Zd„Zd„ZGd„de¦«ZedkrddlZej¦«dSdS) aë speaklater ~~~~~~~~~~ A module that provides lazy strings for translations. Basically you get an object that appears to be a string but changes the value every time the value is evaluated based on a callable you provide. For example you can have a global `lazy_gettext` function that returns a lazy string with the value of the current set language. Example: >>> from speaklater import make_lazy_string >>> sval = u'Hello World' >>> string = make_lazy_string(lambda: sval) This lazy string will evaluate to the value of the `sval` variable. >>> string lu'Hello World' >>> unicode(string) u'Hello World' >>> string.upper() u'HELLO WORLD' If you change the value, the lazy string will change as well: >>> sval = u'Hallo Welt' >>> string.upper() u'HALLO WELT' This is especially handy when combined with a thread local and gettext translations or dicts of translatable strings: >>> from speaklater import make_lazy_gettext >>> from threading import local >>> l = local() >>> l.translations = {u'Yes': 'Ja'} >>> lazy_gettext = make_lazy_gettext(lambda: l.translations.get) >>> yes = lazy_gettext(u'Yes') >>> print yes Ja >>> l.translations[u'Yes'] = u'Si' >>> print yes Si Lazy strings are no real strings so if you pass this sort of string to a function that performs an instance check, it will fail. In that case you have to explicitly convert it with `unicode` and/or `string` depending on what string type the lazy string encapsulates. To check if a string is lazy, you can use the `is_lazy_string` function: >>> from speaklater import is_lazy_string >>> is_lazy_string(u'yes') False >>> is_lazy_string(yes) True New in version 1.2: It's now also possible to pass keyword arguments to the callback used with `make_lazy_string`. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more details. có,—t|t¦«S)z,Checks if the given object is a lazy string.)Ú isinstanceÚ _LazyString)Úobjs új/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/speaklater.pyÚis_lazy_stringrFs€å �c�;Ñ 'Ô 'Ð'ócó$—t|||¦«S)z1Creates a lazy string by invoking func with args.)r)Ú__funcÚargsÚkwargss rÚmake_lazy_stringr Ks€å �v˜t VÑ ,Ô ,Ð,rcó‡—ˆfd„}|S)aPCreates a lazy gettext function dispatches to a gettext function as returned by `lookup_func`. Example: >>> translations = {u'Yes': u'Ja'} >>> lazy_gettext = make_lazy_gettext(lambda: translations.get) >>> x = lazy_gettext(u'Yes') >>> x lu'Ja' >>> translations[u'Yes'] = u'Si' >>> x lu'Si' cóV•—t|¦«r|St‰¦«|¦«S©N)rr )ÚstringÚ lookup_funcs €rÚ lazy_gettextz'make_lazy_gettext..lazy_gettext_s.ø€Ý ˜&Ñ !Ô !ð ØˆMÝ    ¡ ¤ ¨vÑ6Ô6Ð6r©)rrs` rÚmake_lazy_gettextrPs$ø€ð7ð7ð7ð7ð7ð ÐrcóÊ—eZdZdZdZd„Zed„¦«Zd„Zd„Z d„Z d„Z d „Z d „Z d „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z dS)rzÎClass for strings created by a function call. The proxy implementation attempts to be as complete as possible, so that the lazy objects should mostly work as expected, for example for sorting. ©Ú_funcÚ_argsÚ_kwargscó0—||_||_||_dSrr)ÚselfÚfuncr r s rÚ__init__z_LazyString.__init__ns€ØˆŒ ؈Œ ؈Œ ˆ ˆ rcó0—|j|ji|j¤ŽSrr)Úxs rúz_LazyString.ss€˜w˜qœw¨¬Ð=°1´9Ð=Ð=€rcó—||jvSr©Úvalue©rÚkeys rÚ __contains__z_LazyString.__contains__us€Ø�d”jÐ Ð rcó*—t|j¦«Sr)Úboolr$©rs rÚ __nonzero__z_LazyString.__nonzero__xó€Ý�D”JÑÔÐrcó*—tt¦«Sr)ÚdirÚunicoder*s rÚ__dir__z_LazyString.__dir__{s€Ý•7‰|Œ|Ðrcó*—t|j¦«Sr)Úiterr$r*s rÚ__iter__z_LazyString.__iter__~r,rcó*—t|j¦«Sr)Úlenr$r*s rÚ__len__z_LazyString.__len__�ó€Ý�4”:‰ŒÐrcó*—t|j¦«Sr)Ústrr$r*s rÚ__str__z_LazyString.__str__„r7rcó*—t|j¦«Sr)r/r$r*s rÚ __unicode__z_LazyString.__unicode__‡s€Ý�t”zÑ"Ô"Ð"rcó—|j|zSrr#©rÚothers rÚ__add__z_LazyString.__add__Šó€ØŒz˜EÑ!Ð!rcó—||jzSrr#r>s rÚ__radd__z_LazyString.__radd__�ó€Ø�t”zÑ!Ð!rcó—|j|zSrr#r>s rÚ__mod__z_LazyString.__mod__�rArcó—||jzSrr#r>s rÚ__rmod__z_LazyString.__rmod__“rDrcó—|j|zSrr#r>s rÚ__mul__z_LazyString.__mul__–rArcó—||jzSrr#r>s rÚ__rmul__z_LazyString.__rmul__™rDrcó—|j|kSrr#r>s rÚ__lt__z_LazyString.__lt__œó€ØŒz˜EÒ!Ð!rcó—|j|kSrr#r>s rÚ__le__z_LazyString.__le__Ÿó€ØŒz˜UÒ"Ð"rcó—|j|kSrr#r>s rÚ__eq__z_LazyString.__eq__¢rRrcó—|j|kSrr#r>s rÚ__ne__z_LazyString.__ne__¥rRrcó—|j|kSrr#r>s rÚ__gt__z_LazyString.__gt__¨rOrcó—|j|kSrr#r>s rÚ__ge__z_LazyString.__ge__«rRrcó`—|dkr| ¦«St|j|¦«S)NÚ __members__)r0Úgetattrr$)rÚnames rÚ __getattr__z_LazyString.__getattr__®s-€Ø �=Ò Ð Ø—<’<‘>”>Ð !Ý�t”z 4Ñ(Ô(Ð(rcó*—|j|j|jfSrrr*s rÚ __getstate__z_LazyString.__getstate__³s€ØŒz˜4œ: t¤|Ð3Ð3rcó0—|\|_|_|_dSrr)rÚtups rÚ __setstate__z_LazyString.__setstate__¶s€Ø/2Ñ,ˆŒ �D”J ¤     rcó—|j|Srr#r%s rÚ __getitem__z_LazyString.__getitem__¹s€ØŒz˜#ŒÐrcó—|Srrr*s rÚ__copy__z_LazyString.__copy__¼s€Øˆ rcóp— dt|j¦«zS#t$rd|jjzcYSwxYw)NÚlz <%s broken>)Úreprr$Ú ExceptionÚ __class__Ú__name__r*s rÚ__repr__z_LazyString.__repr__¿sM€ð ;Ø�˜dœjÑ)Ô)Ñ)Ð )øÝð ;ð ;ð ;Ø  4¤>Ô#:Ñ:Ð :Ð :Ð :ð ;øøøs ‚™5´5N)!rnÚ __module__Ú __qualname__Ú__doc__Ú __slots__rÚpropertyr$r'r+r0r3r6r:r<r@rCrFrHrJrLrNrQrTrVrXrZr_rardrfrhrorrrrrfsÀ€€€€€ððð .€Iðððð ˆHÐ=Ð=Ñ >Ô >€Eð!ð!ð!ð ð ð ðððð ð ð ððððððð#ð#ð#ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð#ð#ð#ð#ð#ð#ð#ð#ð#ð"ð"ð"ð#ð#ð#ð)ð)ð)ð 4ð4ð4ð3ð3ð3ððððððð;ð;ð;ð;ð;rrÚ__main__éN) rrrr rÚobjectrrnÚdoctestÚtestmodrrrúrzs¦ððAðAðH(ð(ð(ð -ð-ð-ð ððð,];ð];ð];ð];ð];�&ñ];ô];ð];ð@ ˆzÒÐØ€N€N€NØ€G„OÑÔÐÐÐðÐr