/snap/core22/2437/usr/lib/python3.10/__pycache__
NameSizeModeActions
abc.cpython-310.pyc67510644editdlrm
aifc.cpython-310.pyc246850644editdlrm
antigravity.cpython-310.pyc8220644editdlrm
argparse.cpython-310.pyc635390644editdlrm
ast.cpython-310.pyc557390644editdlrm
asynchat.cpython-310.pyc70250644editdlrm
asyncore.cpython-310.pyc160020644editdlrm
base64.cpython-310.pyc171620644editdlrm
bdb.cpython-310.pyc258320644editdlrm
binhex.cpython-310.pyc128700644editdlrm
bisect.cpython-310.pyc25880644editdlrm
bz2.cpython-310.pyc108700644editdlrm
calendar.cpython-310.pyc263030644editdlrm
cgi.cpython-310.pyc267230644editdlrm
cgitb.cpython-310.pyc99980644editdlrm
chunk.cpython-310.pyc48600644editdlrm
cmd.cpython-310.pyc127070644editdlrm
code.cpython-310.pyc99570644editdlrm
codecs.cpython-310.pyc332190644editdlrm
codeop.cpython-310.pyc55950644editdlrm
colorsys.cpython-310.pyc32650644editdlrm
compileall.cpython-310.pyc127330644editdlrm
configparser.cpython-310.pyc454580644editdlrm
contextlib.cpython-310.pyc208950644editdlrm
contextvars.cpython-310.pyc2460644editdlrm
copy.cpython-310.pyc69960644editdlrm
copyreg.cpython-310.pyc46830644editdlrm
cProfile.cpython-310.pyc51130644editdlrm
crypt.cpython-310.pyc35500644editdlrm
csv.cpython-310.pyc117980644editdlrm
dataclasses.cpython-310.pyc265780644editdlrm
datetime.cpython-310.pyc565330644editdlrm
decimal.cpython-310.pyc3620644editdlrm
difflib.cpython-310.pyc589050644editdlrm
dis.cpython-310.pyc156560644editdlrm
doctest.cpython-310.pyc761750644editdlrm
enum.cpython-310.pyc260630644editdlrm
filecmp.cpython-310.pyc87490644editdlrm
fileinput.cpython-310.pyc140720644editdlrm
fnmatch.cpython-310.pyc42440644editdlrm
fractions.cpython-310.pyc186000644editdlrm
ftplib.cpython-310.pyc289770644editdlrm
functools.cpython-310.pyc283350644editdlrm
genericpath.cpython-310.pyc39070644editdlrm
getopt.cpython-310.pyc63390644editdlrm
getpass.cpython-310.pyc42100644editdlrm
gettext.cpython-310.pyc182210644editdlrm
glob.cpython-310.pyc58520644editdlrm
graphlib.cpython-310.pyc76160644editdlrm
gzip.cpython-310.pyc185460644editdlrm
hashlib.cpython-310.pyc68450644editdlrm
heapq.cpython-310.pyc138650644editdlrm
hmac.cpython-310.pyc69730644editdlrm
imaplib.cpython-310.pyc423120644editdlrm
imghdr.cpython-310.pyc39050644editdlrm
imp.cpython-310.pyc97860644editdlrm
inspect.cpython-310.pyc851530644editdlrm
io.cpython-310.pyc36630644editdlrm
ipaddress.cpython-310.pyc626700644editdlrm
keyword.cpython-310.pyc9270644editdlrm
linecache.cpython-310.pyc41420644editdlrm
locale.cpython-310.pyc461540644editdlrm
lzma.cpython-310.pyc121000644editdlrm
mailbox.cpython-310.pyc600910644editdlrm
mailcap.cpython-310.pyc73200644editdlrm
mimetypes.cpython-310.pyc176190644editdlrm
modulefinder.cpython-310.pyc161660644editdlrm
netrc.cpython-310.pyc39330644editdlrm
nntplib.cpython-310.pyc316230644editdlrm
ntpath.cpython-310.pyc147040644editdlrm
nturl2path.cpython-310.pyc17470644editdlrm
numbers.cpython-310.pyc118660644editdlrm
opcode.cpython-310.pyc54470644editdlrm
operator.cpython-310.pyc135080644editdlrm
optparse.cpython-310.pyc477540644editdlrm
os.cpython-310.pyc315990644editdlrm
pathlib.cpython-310.pyc420520644editdlrm
pdb.cpython-310.pyc474400644editdlrm
pickle.cpython-310.pyc468820644editdlrm
pickletools.cpython-310.pyc677600644editdlrm
pipes.cpython-310.pyc77690644editdlrm
pkgutil.cpython-310.pyc183610644editdlrm
platform.cpython-310.pyc274290644editdlrm
plistlib.cpython-310.pyc237650644editdlrm
poplib.cpython-310.pyc135730644editdlrm
posixpath.cpython-310.pyc105600644editdlrm
pprint.cpython-310.pyc178750644editdlrm
profile.cpython-310.pyc143910644editdlrm
pstats.cpython-310.pyc236210644editdlrm
pty.cpython-310.pyc41430644editdlrm
pyclbr.cpython-310.pyc97750644editdlrm
pydoc.cpython-310.pyc856450644editdlrm
py_compile.cpython-310.pyc73390644editdlrm
queue.cpython-310.pyc107920644editdlrm
quopri.cpython-310.pyc57940644editdlrm
random.cpython-310.pyc227480644editdlrm
re.cpython-310.pyc142270644editdlrm
reprlib.cpython-310.pyc52500644editdlrm
rlcompleter.cpython-310.pyc59540644editdlrm
runpy.cpython-310.pyc94110644editdlrm
sched.cpython-310.pyc61150644editdlrm
secrets.cpython-310.pyc21750644editdlrm
selectors.cpython-310.pyc171050644editdlrm
shelve.cpython-310.pyc94920644editdlrm
shlex.cpython-310.pyc77820644editdlrm
shutil.cpython-310.pyc385360644editdlrm
signal.cpython-310.pyc29350644editdlrm
site.cpython-310.pyc179220644editdlrm
sitecustomize.cpython-310.pyc2250644editdlrm
smtpd.cpython-310.pyc261470644editdlrm
smtplib.cpython-310.pyc357660644editdlrm
sndhdr.cpython-310.pyc69620644editdlrm
socket.cpython-310.pyc289630644editdlrm
socketserver.cpython-310.pyc253470644editdlrm
sre_compile.cpython-310.pyc151940644editdlrm
sre_constants.cpython-310.pyc63570644editdlrm
sre_parse.cpython-310.pyc217550644editdlrm
ssl.cpython-310.pyc452710644editdlrm
stat.cpython-310.pyc42730644editdlrm
statistics.cpython-310.pyc370510644editdlrm
string.cpython-310.pyc71020644editdlrm
stringprep.cpython-310.pyc170750644editdlrm
struct.cpython-310.pyc3070644editdlrm
subprocess.cpython-310.pyc447410644editdlrm
sunau.cpython-310.pyc164820644editdlrm
symtable.cpython-310.pyc128350644editdlrm
sysconfig.cpython-310.pyc181510644editdlrm
tabnanny.cpython-310.pyc69500644editdlrm
tarfile.cpython-310.pyc706740644editdlrm
telnetlib.cpython-310.pyc185060644editdlrm
tempfile.cpython-310.pyc273390644editdlrm
textwrap.cpython-310.pyc138120644editdlrm
this.cpython-310.pyc12640644editdlrm
threading.cpython-310.pyc449690644editdlrm
timeit.cpython-310.pyc117690644editdlrm
token.cpython-310.pyc27380644editdlrm
tokenize.cpython-310.pyc171940644editdlrm
trace.cpython-310.pyc198700644editdlrm
traceback.cpython-310.pyc217120644editdlrm
tracemalloc.cpython-310.pyc175250644editdlrm
tty.cpython-310.pyc10790644editdlrm
turtle.cpython-310.pyc1288570644editdlrm
types.cpython-310.pyc95250644editdlrm
typing.cpython-310.pyc852770644editdlrm
uu.cpython-310.pyc38670644editdlrm
uuid.cpython-310.pyc224980644editdlrm
warnings.cpython-310.pyc136460644editdlrm
wave.cpython-310.pyc175940644editdlrm
weakref.cpython-310.pyc203430644editdlrm
webbrowser.cpython-310.pyc170000644editdlrm
xdrlib.cpython-310.pyc78800644editdlrm
zipapp.cpython-310.pyc60130644editdlrm
zipfile.cpython-310.pyc618450644editdlrm
zipimport.cpython-310.pyc170330644editdlrm
_aix_support.cpython-310.pyc28790644editdlrm
_bootsubprocess.cpython-310.pyc22940644editdlrm
_collections_abc.cpython-310.pyc329250644editdlrm
_compat_pickle.cpython-310.pyc58720644editdlrm
_compression.cpython-310.pyc45120644editdlrm
_distutils_system_mod.cpython-310.pyc54220644editdlrm
_markupbase.cpython-310.pyc75720644editdlrm
_osx_support.cpython-310.pyc115350644editdlrm
_pydecimal.cpython-310.pyc1577360644editdlrm
_pyio.cpython-310.pyc736540644editdlrm
_py_abc.cpython-310.pyc46830644editdlrm
_sitebuiltins.cpython-310.pyc35470644editdlrm
_strptime.cpython-310.pyc159450644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-310.pyc353850644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-310.pyc353790644editdlrm
_threading_local.cpython-310.pyc65390644editdlrm
_weakrefset.cpython-310.pyc76080644editdlrm
__future__.cpython-310.pyc41310644editdlrm
__phello__.foo.cpython-310.pyc1300644editdlrm
Edit: /snap/core22/2437/usr/lib/python3.10/__pycache__/gettext.cpython-310.pyc (18221B)
o p̦i-l@sdZddlZddlZddlZgdZejejddZe dej ej BZ ddZ d d Zd Zd d eedDZddddZdGddZddZddZddZGdddZGdddeZdHd!d"ZiZd#gZdddd efd$d%Zdedfd&d'Ziaiad(adId)d*Z dId+d,Z!dId-d.Z"d/d0Z#d1d2Z$d3d4Z%d5d6Z&d7d8Z'd9d:Z(d;d<Z)d=d>Z*d?d@Z+dAdBZ,dCdDZ-dEdFZ.eZ/dS)JaInternationalization and localization support. This module provides internationalization (I18N) and localization (L10N) support for your Python programs by providing an interface to the GNU gettext message catalog library. I18N refers to the operation by which a program is made aware of multiple languages. L10N refers to the adaptation of your program, once internationalized, to the local language and cultural habits. N)NullTranslationsGNUTranslationsCatalogfind translationinstall textdomainbindtextdomainbind_textdomain_codesetdgettext dngettextgettextlgettext ldgettext ldngettext lngettextngettextpgettext dpgettext npgettext dnpgettextsharelocalea (?P[ \t]+) | # spaces and horizontal tabs (?P[0-9]+\b) | # decimal integer (?Pn\b) | # only n is allowed (?P[()]) | (?P[-*/%+?:]|[>, # <=, >=, ==, !=, &&, ||, # ? : # unary and bitwise ops # not allowed (?P\w+|.) # invalid token ccsRtt|D]}|j}|dkrq||}|dkr td||VqdVdS)N WHITESPACESINVALIDz invalid token in plural form: %s)refinditer_token_pattern lastgroupgroup ValueError)pluralmokindvaluer&/usr/lib/python3.10/gettext.py _tokenizeVs   r(cCs|rtd|StdS)Nz#unexpected token in plural form: %szunexpected end of plural form)r!)r%r&r&r'_erroras r)))||)&&)z==z!=)<>z<=z>=)+-)*/%cCs i|] \}}|D]}||qqSr&r&).0iopsopr&r&r' os r7orandz//)r*r+r1c Csd}t|}|dkr|d7}t|}|dks |dkr/t|\}}d||f}|dkr.tdn%|dkr:d ||f}nzt|d }Wn tyMt|dwd ||f}t|}d }|tvrt|}||krgn(|d vrs|d vrsd|}t||}t||d\} }d||| f}|}|tvs^||krdkrnnd|}|dkr|dkrt|d\} }|dkrt|t|\} }d| || f}|dkrd|}||fS)Nr!znot (z%s(%s))z%unbalanced parenthesis in plural formnz%s%s z%s%dd)z(%s)r8z%s %s %srC?r:z%s if %s else %s)next_parser!intr) _binary_ops _c2py_opsget) tokenspriorityresultnexttoksubr%jr4r6rightif_trueif_falser&r&r'rGrsX        rGcCsTzt|}Wntytd|jjfdwddl}|d|jjftd|S)Nz'Plural value must be an integer, got %srrC)round TypeError __class____name__warningswarnDeprecationWarning)r?r4rYr&r&r'_as_ints   r\cCst|dkr tdz>tt|\}}|rt|d}|D]}|dkr0|d7}|dkr/tdq|dkr8|d8}qd ti}td |||d WStyStdw) zGets a C expression as used in PO files for plural forms and returns a Python function that implements an equivalent expression. iz"plural form expression is too longrr=r8z%plural form expression is too complexr>r\zif True: def func(n): if not isinstance(n, int): n = _as_int(n) return int(%s) func)lenr!rGr(r)r\execRecursionError)r"rNrOdepthcnsr&r&r'c2pys4   recCs8ddl}||}d}d}d}d}|d}|dkr+||d}|d|}||O}nd}|d}|dkrG||d}|d|}||O}nd}|d}|dkrc||d} |d|}||O}nd} |} g} t|dD]&} | |@s| } | |@r| | 7} | |@r| |7} | |@r| |7} | | qo| | S) Nrr8rC@r._)r normalizerrangeappendreverse)locrCOMPONENT_CODESETCOMPONENT_TERRITORYCOMPONENT_MODIFIERmaskposmodifiercodeset territorylanguageretr4valr&r&r' _expand_langsH               rzc@seZdZdddZddZddZdd Zd d Zd d ZddZ ddZ ddZ ddZ ddZ ddZddZdddZdS)rNcCs2i|_d|_d|_d|_|dur||dSdSN)_info_charset_output_charset _fallbackrGselffpr&r&r'__init__szNullTranslations.__init__cCsdSr{r&rr&r&r'rGszNullTranslations._parsecCs |jr |j|dS||_dSr{)r add_fallback)rfallbackr&r&r'r s zNullTranslations.add_fallbackcCs|jr |j|S|Sr{)rr )rmessager&r&r'r s zNullTranslations.gettextcCsddl}|dtdddl}|jr3||ddt|j|WdS1s.wY|jr<| |jS| | S)Nr/lgettext() is deprecated, use gettext() insteadrfignore.*\blgettext\b.*) rYrZr[rrcatch_warningsfilterwarningsrr~encodegetpreferredencoding)rrrYrr&r&r'rs    zNullTranslations.lgettextcCs&|jr |j|||S|dkr|S|SNr8)rr)rmsgid1msgid2r?r&r&r'r#s zNullTranslations.ngettextcCsddl}|dtdddl}|jr5||ddt|j|||WdS1s0wY|dkr<|}n|}|jrG| |jS| | S)Nr1lngettext() is deprecated, use ngettext() insteadrfr.*\blngettext\b.*r8) rYrZr[rrrrrr~rrrrrr?rYrtmsgr&r&r'r+s$   zNullTranslations.lngettextcCs|jr |j||S|Sr{)rr)rcontextrr&r&r'r=szNullTranslations.pgettextcCs(|jr |j||||S|dkr|S|Sr)rr)rrrrr?r&r&r'rBs zNullTranslations.npgettextcC|jSr{)r|rr&r&r'infoJzNullTranslations.infocCrr{)r}rr&r&r'charsetMrzNullTranslations.charsetcCsddl}|dtd|jS)Nrzoutput_charset() is deprecatedrfrYrZr[r~)rrYr&r&r'output_charsetPs zNullTranslations.output_charsetcCs ddl}|dtd||_dS)Nrz"set_output_charset() is deprecatedrfr)rrrYr&r&r'set_output_charsetVs  z#NullTranslations.set_output_charsetcCsNddl}|j|jd<|dur#hd}|t|@D] }t|||j|<qdSdS)Nrri>r rrrrr)builtinsr __dict__setgetattr)rnamesrallowednamer&r&r'r\s zNullTranslations.installr{)rX __module__ __qualname__rrGrr rrrrrrrrrrr&r&r&r'rs rc@s\eZdZdZdZdZdZddZddZd d Z d d Z d dZ ddZ ddZ ddZdS)rl*l$<z%s%s)rr8cCs|d?|d@fS)z/Returns a tuple of major version, minor versionir&)rversionr&r&r' _get_versionsrszGNUTranslations._get_versionsc"Csddlm}t|dd}i|_}dd|_|}t|}|d|dd d}||jkr>|d |d d \}} } } d } n||jkrS|d |d d \}} } } d} nt dd|| |\} }| |j vrot ddt | |t d| D]}|| || | d\}}||}|| || | d\}}||}||kr||kr|||}|||}nt dd||dkr,d}|dD]l}|}|sq|dr|drqd}}d|vr|dd\}}|}|}||j|<|}n|r|j|d|7<|dkr|dd|_q|dkr+|d}|ddd}t||_q|jp1d}d|vr\|d\}} |d}t ||}t|D]\}}!t |!||||f<qLn t |||t ||<| d7} | d7} qtdS)z8Override this method to support alternative .mo formats.r)unpackrrcSs t|dkSr)rH)r?r&r&r's z(GNUTranslations._parse..z4Iz>IIzBad magic numberzBad version number zFile is corrupt z #-#-#-#-#rEr8 z content-typezcharset=z plural-forms;zplural=ascii)structrr_catalogr"readr_LE_MAGICBE_MAGICOSErrorrVERSIONSstrrksplitdecodestrip startswithendswithlowerr|r}re enumerate)"rrrfilenamecatalogbufbuflenmagicrmsgcount masteridxtransidxii major_version minor_versionr4mlenmoffmendtlentofftendmsgrlastkb_itemitemkvr"rrrxr&r&r'rGvs|                      zGNUTranslations._parsecCspddl}|dtdddl}t}|j||}||ur(|jr&|j|S|}|j r1| |j S| | S)Nrrrf) rYrZr[robjectrrKrrr~rr)rrrYrmissingrr&r&r'rs  zGNUTranslations.lgettextcCsddl}|dtdddl}z |j|||f}Wnty:|jr/|j|||YS|dkr6|}n|}Ynw|j rD| |j S| | S)Nrrrfr8) rYrZr[rrr"KeyErrorrrr~rrrr&r&r'rs$  zGNUTranslations.lngettextcCs6t}|j||}||ur|jr|j|S|S|Sr{)rrrKrr )rrrrr&r&r'r s zGNUTranslations.gettextcCs`z |j|||f}W|Sty/|jr!|j|||YS|dkr*|}Y|S|}Y|Swr)rr"rrr)rrrr?rr&r&r'rs zGNUTranslations.ngettextcCsF|j||f}t}|j||}||ur!|jr|j||S|S|Sr{)CONTEXTrrrKrr)rrr ctxt_msg_idrrr&r&r'rszGNUTranslations.pgettextc Csp|j||f}z |j|||f}W|Sty7|jr)|j||||YS|dkr2|}Y|S|}Y|Swr)rrr"rrr)rrrrr?rrr&r&r'rs zGNUTranslations.npgettextN)rXrrrrrrrrGrrr rrrr&r&r&r'rfsY  rFc Cs|durt}|dur)g}dD]}tj|}|r|d}nqd|vr)|dg}|D]}t|D] }||vr>||q3q-|rEg} nd} |D]C}|dkrR| Stj||dd|} tjd|dd|} tj | rz|rv| | n| Stj | r|r| | qI| SqI| S)N)LANGUAGELC_ALL LC_MESSAGESLANGrECrz%s.moz/usr/share/locale-langpack) _default_localedirosenvironrKrrlrzpathjoinexists) domain localedir languagesallenvarrynelangslangnelangrNmofile mofile_lpr&r&r'rsP          r unspecifiedc Cs<|durt}t|||dd}|s!|rtSddlm}t|d|d}|D]v} |tj| f} t | } | durUt | d} t | || } Wdn1sPwYddl } | | } |turddl}|dtd|r||d d t| |Wdn1swY|dur| }q%|| q%|S) NT)rr)ENOENTz$No translation file found for domainrbzparameter codeset is deprecatedrfrz.*\bset_output_charset\b.*)rrrerrnorFileNotFoundErrorrrabspath _translationsrKopen setdefaultcopy _unspecifiedrYrZr[rrrr)rrrclass_rrumofilesrrNrkeytrrrYr&r&r'rVsH       rcCst||d|d}||dS)NT)rru)rr)rrrurrr&r&r'rsrmessagescCs|dur|atSr{)_current_domain)rr&r&r'rsrcCs|dur|t|<t|tSr{) _localedirsrKr)rrr&r&r'r s r cCs0ddl}|dtd|dur|t|<t|S)Nrz'bind_textdomain_codeset() is deprecatedrf)rYrZr[_localecodesetsrK)rrurYr&r&r'r s r cCs8z t|t|d}Wn ty|YSw||Sr{)rrrKrr )rrrr&r&r'r s   r cCsddl}|dtdddl}t|}z(||ddtt|t |d|d}Wdn1s6wYWnt yN| |pJ| YSw||ddt| |WdS1sjwYdS)Nrz1ldgettext() is deprecated, use dgettext() insteadrfr.*\bparameter codeset\b.*rur)rYrZr[rrrKrrrrrrrr)rrrYrrurr&r&r'rs.    $rcCsLz t|t|d}Wnty|dkr|YS|YSw||||Sr)rrrKrr)rrrr?rr&r&r'r s r c Csddl}|dtdddl}t|}z(||ddtt|t |d|d}Wdn1s6wYWnt yW|dkrJ|}n|}| |pS| YSw||ddt| |||WdS1suwYdS) Nrz3ldngettext() is deprecated, use dngettext() insteadrfrrrr8r)rYrZr[rrrKrrrrrrrr) rrrr?rYrrurrr&r&r'rs4     $rcCs:z t|t|d}Wn ty|YSw|||Sr{)rrrKrr)rrrrr&r&r'rs   rcCsNz t|t|d}Wnty|dkr|YS|YSw|||||Sr)rrrKrr)rrrrr?rr&r&r'rs rcCs tt|Sr{)r r)rr&r&r'r s r cCsZddl}|dtd||ddttt|WdS1s&wYdS)Nrrrfrz.*\bldgettext\b.*)rYrZr[rrrr)rrYr&r&r'rs $rcCstt|||Sr{)r r)rrr?r&r&r'rsrcCs^ddl}|dtd||ddttt|||WdS1s(wYdS)Nrrrfrz.*\bldngettext\b.*)rYrZr[rrrr)rrr?rYr&r&r'rs  $rcCs tt||Sr{)rr)rrr&r&r'r s rcCstt||||Sr{)rr)rrrr?r&r&r'rsr)r;)NNFr{)0__doc__rrsys__all__rr base_prefixrcompileVERBOSEDOTALLrr(r)rIrrJrGr\rerzrrrrrrrrrrrr r r rr rrrr rrrrrrr&r&r&r's^0     1 $+h 95 +