/snap/core22/2411/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.pyc424320644editdlrm
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.pyc136700644editdlrm
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/2411/usr/lib/python3.10/__pycache__/platform.cpython-310.pyc (27429B)
o `wi& @sdZdZdZddlZddlZddlZddlZddlZddlZddl Z ddddddd d d d d Z e d Z d dZ e dejZdddZdddZe dZ  dddZddddddd d!d"d#d$d% Zdd&d'd(d)d*d+Zd,d-Zd.d/Zdd0d1Zd2d3Zdd5d6Zd7d8Zdd9d:Zd;d<Zd=d>Zdd?d@ZdAdBZ ddCdDZ!dEdFdGdZ"ej#ddfdHdIZ$dJdKZ%GdLdMdMZ&dNdOZ'GdPdQdQe(dRdSZ)da*dTdUZ+dVdWZ,dXdYZ-dZd[Z.d\d]Z/d^d_Z0d`daZ1e dbejZ2e dcejZ3e ddZ4e deZ5iZ6ddfdgZ7dhdiZ8djdkZ9dldmZ:dndoZ;dpdqZiZ?ddvdwZ@e dxZAe dyZBdzZCdaDd{d|ZEd}d~ZFeGdkrjdejHvpPdejHvZIdejHvo[dejHvZJeKe@eJeIeLddSdS)a8 This module tries to retrieve as much platform-identifying data as possible. It makes this information available via function APIs. If called from the command line, it prints the platform information concatenated as single string to stdout. The output format is useable as part of a filename. a Copyright (c) 1999-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com Copyright (c) 2000-2010, eGenix.com Software GmbH; mailto:info@egenix.com Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee or royalty is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation or portions thereof, including modifications, that you make. EGENIX.COM SOFTWARE GMBH DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE ! z1.0.8N (2) devalphaabetabcRCrcplpz([0-9]+|[._+-])c Cs`g}t|D]&}|dvr-z t|d}d}Wnty%t|d}Ynw|||fq|S)Nz._+-rdr) _component_resplitint ValueError _ver_stagesgetextend)versionresultvtr/usr/lib/python3.10/platform.py_comparable_versions  r sC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)@c Cs|s*ztd}|jdd}t|dkrt|WSWn tttfy&Ynwtj }t }t tj dr8tj |}t|d}||}d} | t|krd|vsSd |vrZt|| } nd } | rf| t|kr||} | r|t| t|d d | }d} qE| snqd d | D\} } }}}}| r|sd}n=| r|dkrd}|}n2||||kr|}n'|r|dkrd}|r|r||||kr|}|r|t| d |kr||}| } | t|ksKWd ||fSWd ||fSWd ||fS1swY||fS)a Tries to determine the libc version that the file executable (which defaults to the Python interpreter) is linked against. Returns a tuple of strings (lib,version) which default to the given parameters in case the lookup fails. Note that the function has intimate knowledge of how different libc versions add symbols to the executable and thus is probably only useable for executables compiled using gcc. The file is read and scanned in chunks of chunksize bytes. CS_GNU_LIBC_VERSION)maxsplitrealpathrbrslibcsGLIBCNicSs"g|] }|dur |dn|qS)Nlatin1)decode).0srrr szlibc_ver..libcglibc)osconfstrrlentupleAttributeErrorrOSErrorsys executabler hasattrpathr'openread _libc_searchsearchendmaxgroups)r7libr chunksizeverpartsVfbinaryposmchunklibcinitr/ glibcversionsothreads soversionrrrlibc_versx           # # ##rPcCs^|d}|r ||z ttttt|}Wn ty#|}Ynwd|dd}|S)z Normalize the version and build strings and return a single version string using the format major.minor.build (or patchlevel). .N)rappendlistmapstrrrjoin)rbuildlstringsrrr _norm_versions   r[z'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])win32win16dosc Cstj|vr |||fSddl}dD]'}z|j||j|jddd}Wnt|jfy5}zWYd}~qd}~wwn|||fS|}t |}|durm| \}}}|ddkr]|dd}|ddkri|dd}t |}|||fS)a+ Tries to figure out the OS version used and returns a tuple (system, release, version). It uses the "ver" shell command for this which is known to exists on Windows, DOS. XXX Others too ? In case this fails, the given parameters are used as defaults. rN)rCzcommand /c verz cmd /c verT)stdinstderrtextshellrQ) r6platform subprocess check_outputDEVNULLr5CalledProcessErrorstrip _ver_outputmatchr@r[) systemreleasersupported_platformsrfcmdinfowhyrIrrr _syscmd_vers6           rs2000XP 2003Serverpost2003Vista78z8.1zpost8.110post10) )r)r}r$r}r&)r}Nrrr$rr&rrRrN)rr)rN 2008Server 2008ServerR2 2012Server 2012ServerR2post2012ServerR2)r~rrrrrcCs tdvS)N)IoTUAP NanoServerWindowsCoreHeadless IoTEdgeOS) win32_editionrrrr win32_is_iotSs rcCszzddl}Wn tyddl}YnwWn ty YdSwz%d}||j|}||ddWdWS1s?wYWdStyPYdSw)Nr,SOFTWARE\Microsoft\Windows NT\CurrentVersion EditionId)winreg ImportError_winreg OpenKeyExHKEY_LOCAL_MACHINE QueryValueExr5)rcvkeykeyrrrrVs*     $ rc Cszddlm}Wnty||||fYSw|}ztttdd\}}}Wnty@|jp:|dd\}}}Ynwd |||}t ||fpWt |dfpW|}|dd||fkrzd |j }Wnt y|ddd krd |dd}Ynwt|d ddkrt ||fpt |dfp|}zzddl} Wn tyddl} YnwWn tyYn.wz#d } | | j| } | | d d}Wdn1swYWn tyYnw||||fS)Nr)getwindowsversionr&rQrRz {0}.{1}.{2}zSP{} z Service Pack SP product_typer CurrentType)r6rrrUrrsrrplatform_versionformat_WIN32_CLIENT_RELEASESrservice_pack_majorr4getattr_WIN32_SERVER_RELEASESrrrrrr5) rnrcsdptyperwinvermajorminorrXrrrrrr win32_verhsf            rcCsd}tj|s dSzddl}Wn tyYdSwt|d }||}Wdn1s0wY|d}d}tj}|dvrFd}|||fS)Nz0/System/Library/CoreServices/SystemVersion.plistrr(ProductVersionr!r!r!)ppczPower MacintoshPowerPC) r0r9existsplistlibrr:loadunamemachine)fnrrFrrn versioninforrrr _mac_ver_xmls"       rrcCst}|dur |S|||fS)a< Get macOS version information and return it as tuple (release, versioninfo, machine) with versioninfo being a tuple (version, dev_stage, non_release_version). Entries which cannot be determined are set to the parameter values which default to ''. All tuple entries are strings. N)r)rnrrrqrrrmac_vers  rcCsBddlm}z||}|dur|WS|WSty |YSw)Nr)System) java.langr getPropertyr4)namedefaultrvaluerrr _java_getprops   rc Cszddl}Wnty||||fYSwtd|}td|}|\}}}td|}td|}td|}|||f}|\}} } td| } td |}td | } || | f}||||fS) a] Version interface for Jython. Returns a tuple (release, vendor, vminfo, osinfo) with vminfo being a tuple (vm_name, vm_release, vm_vendor) and osinfo being a tuple (os_name, os_version, os_arch). Values which cannot be determined are set to the defaults given as parameters (which all default to ''). rNz java.vendorz java.versionz java.vm.namezjava.vm.vendorzjava.vm.versionz java.os.archz java.os.namezjava.os.version)rrr) rnvendorvminfoosinfojavavm_name vm_release vm_vendoros_name os_versionos_archrrrjava_vers$               rcCs|dkr?|dkr |||fS|d}|r5zt|d}Wn ty%Ynw|d}t||d<d|}|dkr"sz_platform.. _/\:;"()unknownr!r$z--rdN)rWfilterr2replace)argsrecleanedrrr _platforms(             rcCsFzddl}Wn ty|YSwz|WSty"|YSw)z8 Helper to determine the node name of this machine. rN)socketr gethostnamer5)rrrrr_node<s    rcCsLtj|}tj|r$tjtjtj|t|}tj|s |S)zT In case filepath is a symlink, follow it until a real file is reached. )r0r9abspathislinknormpathrWdirnamereadlink)filepathrrr_follow_symlinksKs   rc Csxtjdvr|Sddl}t|}ttjdd}z|jdd|g|j|d}Wnt |j fy2|YSw|s7|S| d S) z Interface to the system's file command. The function uses the -b option of the file command to have it omit the filename in its output. Follow the symlinks. It returns default in case the command should fail. )r_r]r^rNC)LC_ALLfilez-b)raenvzlatin-1) r6rerfrdictr0environrgrhr5rir*)targetrrfroutputrrr _syscmd_fileWs    r)r! WindowsPE)r!r)r!MSDOScCs|sddl}|d}t|dd}|rt|d}nd}|s<|tjkrt }|rC|sht |\}}}|dkrQd}n|dkrh|dkrhd}d|dd krfd }nd}|d vrz|sw|dkrud }nd }d}n|dddkrt \}}} } d}d | }|s|}|dkr|r|dkr|}d}|dkr|dkrd}d }|||||f} t tt| atS)an Fairly portable uname interface. Returns a tuple of strings (system, node, release, version, machine, processor) identifying the underlying platform. Note that unlike the os.uname function this also returns possible processor information as an additional tuple entry. Entries which cannot be determined are set to ''. Nr!rr]zMicrosoft Windowsr Microsoftz6.0rRrxrr16bitrJava, OpenVMS0) _uname_cacher0rr4r6reranyrr rsrrWr"rUr!) rmr#rnrrinfosrrrrrvalsrrrr.sZ     rcCtjS)z Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'. An empty string is returned if the value cannot be determined. )rrmrrrrrmrmcCrH)z Returns the computer's network name (which may not be fully qualified) An empty string is returned if the value cannot be determined. )rr#rrrrr#sr#cCrH)z Returns the system's release, e.g. '2.2.0' or 'NT' An empty string is returned if the value cannot be determined. )rrnrrrrrnrIrncCrH)z Returns the system's release version, e.g. '#3 on degas' An empty string is returned if the value cannot be determined. )rrrrrrrrIrcCrH)zt Returns the machine type, e.g. 'i386' An empty string is returned if the value cannot be determined. )rrrrrrrrIrcCrH)a Returns the (true) processor name, e.g. 'amdk6' An empty string is returned if the value cannot be determined. Note that many platforms do not provide this information or simply return the same value as for machine(), e.g. NetBSD does this. )rr$rrrrr$s r$zL([\w.+]+)\s*\(#?([^,]+)(?:,\s*([\w ]*)(?:,\s*([\w :]*))?)?\)\s*\[([^\]]+)\]?z;IronPython\s*([\d\.]+)(?: \(([\d\.]+)\))? on (.NET [\d\.]+)zU([\d.]+)\s*\(IronPython\s*[\d.]+\s*\(([\d.]+)\) on ([\w.]+ [\d.]+(?: \(\d+-bit\))?)\)zE([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[PyPy [^\]]+\]?cCs|durtj}t|d}|dur|Sd|vrAd}|dr$t|}nt|}|dur5tdt || \}}}d}d}nytj drmd}t |}|durZtdt || \}}}} } |durid}tj }nMd|vrd}t |}|durtd t || \}}}} d}n+t |}|durtd t || \}}}} }d }|durd}n| r|d | }ttd rtj\} } } nttdrtj\} } } nd} d} |d} t| dkr| dd| }||| | |||f}|t|<|S)a Returns a parsed version of Python's sys.version as tuple (name, version, branch, revision, buildno, builddate, compiler) referring to the Python implementation name, version, branch, revision, build number, build date/time as string and the compiler identification string. Note that unlike the Python sys.version, the returned value for the Python version will always include the patchlevel (it defaults to '.0'). The function returns empty strings for tuple entries that cannot be determined. sys_version may be given to parse an alternative version string, e.g. if the version was read from a different Python interpreter. N IronPythonz*failed to parse IronPython sys.version: %sr!rJythonz&failed to parse Jython sys.version: %sPyPyz$failed to parse PyPy sys.version: %sz'failed to parse CPython sys.version: %sCPythonr_git _mercurialrQr&rC)r6r_sys_version_cacher startswith_ironpython_sys_version_parserrl _ironpython26_sys_version_parserrreprr@re_sys_version_parser_pypy_sys_version_parserr8rNrOrr2rSrW) sys_versionrrrlr alt_versioncompilerbuildno builddate buildtimerbranchrevisionrYrrr _sys_versions                r_cC tdS)aR Returns a string identifying the Python implementation. Currently, the following implementations are identified: 'CPython' (C implementation of Python), 'IronPython' (.NET implementation of Python), 'Jython' (Java implementation of Python), 'PyPy' (Python implementation of Python). rr_rrrrpython_implementationG rbcCr`)z Returns the Python version as string 'major.minor.patchlevel' Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0). r$rarrrrpython_versionTs rdcCsttddS)z Returns the Python version as tuple (major, minor, patchlevel) of strings. Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0). r$rQ)r3r_rrrrrpython_version_tuple^s recCr`)z Returns a string identifying the Python implementation branch. For CPython this is the SCM branch from which the Python binary was built. If not available, an empty string is returned. r&rarrrr python_branchis rfcCr`)z Returns a string identifying the Python implementation revision. For CPython this is the SCM revision from which the Python binary was built. If not available, an empty string is returned. rRrarrrrpython_revisionwrcrgcCstddS)zh Returns a tuple (buildno, builddate) stating the Python build number and date as strings. r?rrarrrr python_buildsrhcCr`)zS Returns a string identifying the compiler used for compiling Python. rrarrrrpython_compilers ricCsXt||fd}|dur|St\}}}}}}||krd}|r(t|||\}}}|dkr7td} | r7d}| }|dkrSt|\} } } } |rKt||}nYt|||| }nQ|dvrht\}}t||||d||}n<|d krt\}}}\}}}|sz|st|||}n#t|||d |||}n|rt||}nt t j \}}t||||||}|t||f<|S) a Returns a single string identifying the underlying platform with as much useful information as possible (but no more :). The output is intended to be human readable rather than machine parseable. It may look different on different platforms and this is intended. If "aliased" is true, the function will use aliases for various platforms that report system names which differ from their common names, e.g. SunOS will be reported as Solaris. The system_alias() function is used to implement this. Setting terse to true causes the function to return only the absolute minimum information needed to identify the platform. Nr!DarwinrmacOSr)Linuxwithr@on) _platform_cacherrrrrrrPrrr6r7)aliasedterserrmr#rnrrr$ macos_releaserelversrrrelibcname libcversionrrrrrrrrrrrresP      rezA^(?P[a-zA-Z0-9_]+)=(?P["']?)(?P.*)(?P=quote)$z\\([\\\$\"\'`]))z/etc/os-releasez/usr/lib/os-releasecCsHdddd}|D]}t|}|dur!td|d||d<q|S)Nrllinux)NAMEID PRETTY_NAMEz\1rr)_os_release_linerl_os_release_unescapesubgroup)linesrqlinemorrr_parse_os_releases  rc CstdurKd}tD]7}z t|dd }t|aWdn1s wYWtSty?}z |j}WYd}~qd}~wwt|ddttS)zKReturn operation system identification from freedesktop.org os-release Nzutf-8)encodingzUnable to read files rA)_os_release_cache_os_release_candidatesr:rr5errnorWcopy)r candidaterFerrrfreedesktop_os_releases$  r__main__rqz--terse nonaliasedz --nonaliased)Nr!r!r")r!)r!r!r!r\)r!r!r!r!)r!rr!)r!r!rrr)rr)Mr8 __copyright__ __version__ collectionsr0rer6rfr9r'rcompilerr ASCIIr<rPr[rkrsrrrrrrrrrrrrrrrr7rr r r! namedtupler"rDrrmr#rnrrr$rUrRrSrVrPr_rbrdrerfrgrhrirorer|r}rrrrrargvrqrpprintexitrrrrsY    G   2  3  #*  $L  ,Y      h     O