/snap/core18/2979/usr/lib/python3.6/__pycache__
NameSizeModeActions
abc.cpython-36.pyc75150644editdlrm
aifc.cpython-36.pyc259430644editdlrm
antigravity.cpython-36.pyc7790644editdlrm
argparse.cpython-36.pyc604560644editdlrm
ast.cpython-36.pyc117040644editdlrm
asynchat.cpython-36.pyc68150644editdlrm
asyncore.cpython-36.pyc158380644editdlrm
base64.cpython-36.pyc170590644editdlrm
bdb.cpython-36.pyc170330644editdlrm
binhex.cpython-36.pyc120860644editdlrm
bisect.cpython-36.pyc26760644editdlrm
bz2.cpython-36.pyc112820644editdlrm
calendar.cpython-36.pyc258820644editdlrm
cgi.cpython-36.pyc284160644editdlrm
cgitb.cpython-36.pyc100800644editdlrm
chunk.cpython-36.pyc49000644editdlrm
cmd.cpython-36.pyc125750644editdlrm
code.cpython-36.pyc98360644editdlrm
codecs.cpython-36.pyc339000644editdlrm
codeop.cpython-36.pyc62700644editdlrm
colorsys.cpython-36.pyc33110644editdlrm
compileall.cpython-36.pyc82780644editdlrm
configparser.cpython-36.pyc452440644editdlrm
contextlib.cpython-36.pyc111580644editdlrm
copy.cpython-36.pyc70790644editdlrm
copyreg.cpython-36.pyc42440644editdlrm
cProfile.cpython-36.pyc42940644editdlrm
crypt.cpython-36.pyc22420644editdlrm
csv.cpython-36.pyc118550644editdlrm
datetime.cpython-36.pyc545110644editdlrm
decimal.cpython-36.pyc3510644editdlrm
difflib.cpython-36.pyc596420644editdlrm
dis.cpython-36.pyc141810644editdlrm
doctest.cpython-36.pyc755890644editdlrm
dummy_threading.cpython-36.pyc11020644editdlrm
enum.cpython-36.pyc234530644editdlrm
filecmp.cpython-36.pyc83050644editdlrm
fileinput.cpython-36.pyc131520644editdlrm
fnmatch.cpython-36.pyc28740644editdlrm
formatter.cpython-36.pyc175790644editdlrm
fractions.cpython-36.pyc184260644editdlrm
ftplib.cpython-36.pyc283570644editdlrm
functools.cpython-36.pyc240620644editdlrm
genericpath.cpython-36.pyc37260644editdlrm
getopt.cpython-36.pyc62170644editdlrm
getpass.cpython-36.pyc41770644editdlrm
gettext.cpython-36.pyc143060644editdlrm
glob.cpython-36.pyc42590644editdlrm
gzip.cpython-36.pyc162260644editdlrm
hashlib.cpython-36.pyc66920644editdlrm
heapq.cpython-36.pyc142920644editdlrm
hmac.cpython-36.pyc48360644editdlrm
imaplib.cpython-36.pyc421380644editdlrm
imghdr.cpython-36.pyc41500644editdlrm
imp.cpython-36.pyc96960644editdlrm
inspect.cpython-36.pyc797390644editdlrm
io.cpython-36.pyc33870644editdlrm
ipaddress.cpython-36.pyc623860644editdlrm
keyword.cpython-36.pyc17650644editdlrm
linecache.cpython-36.pyc37780644editdlrm
locale.cpython-36.pyc340300644editdlrm
lzma.cpython-36.pyc119920644editdlrm
macpath.cpython-36.pyc56410644editdlrm
macurl2path.cpython-36.pyc18670644editdlrm
mailbox.cpython-36.pyc637520644editdlrm
mailcap.cpython-36.pyc72090644editdlrm
mimetypes.cpython-36.pyc155530644editdlrm
modulefinder.cpython-36.pyc153660644editdlrm
netrc.cpython-36.pyc38360644editdlrm
nntplib.cpython-36.pyc337800644editdlrm
ntpath.cpython-36.pyc131900644editdlrm
nturl2path.cpython-36.pyc14990644editdlrm
numbers.cpython-36.pyc121420644editdlrm
opcode.cpython-36.pyc54130644editdlrm
operator.cpython-36.pyc139130644editdlrm
optparse.cpython-36.pyc480540644editdlrm
os.cpython-36.pyc296280644editdlrm
pathlib.cpython-36.pyc420070644editdlrm
pdb.cpython-36.pyc460940644editdlrm
pickle.cpython-36.pyc426910644editdlrm
pickletools.cpython-36.pyc660200644editdlrm
pipes.cpython-36.pyc78080644editdlrm
pkgutil.cpython-36.pyc162610644editdlrm
platform.cpython-36.pyc291970644editdlrm
plistlib.cpython-36.pyc280550644editdlrm
poplib.cpython-36.pyc133290644editdlrm
posixpath.cpython-36.pyc104560644editdlrm
pprint.cpython-36.pyc158240644editdlrm
profile.cpython-36.pyc139010644editdlrm
pstats.cpython-36.pyc218570644editdlrm
pty.cpython-36.pyc38610644editdlrm
pyclbr.cpython-36.pyc83650644editdlrm
pydoc.cpython-36.pyc837750644editdlrm
py_compile.cpython-36.pyc65440644editdlrm
queue.cpython-36.pyc87550644editdlrm
quopri.cpython-36.pyc57730644editdlrm
random.cpython-36.pyc193300644editdlrm
re.cpython-36.pyc140580644editdlrm
reprlib.cpython-36.pyc54000644editdlrm
rlcompleter.cpython-36.pyc57800644editdlrm
runpy.cpython-36.pyc79820644editdlrm
sched.cpython-36.pyc65640644editdlrm
secrets.cpython-36.pyc21620644editdlrm
selectors.cpython-36.pyc176970644editdlrm
shelve.cpython-36.pyc94580644editdlrm
shlex.cpython-36.pyc69700644editdlrm
shutil.cpython-36.pyc307040644editdlrm
signal.cpython-36.pyc25150644editdlrm
site.cpython-36.pyc165600644editdlrm
sitecustomize.cpython-36.pyc2120644editdlrm
smtpd.cpython-36.pyc266830644editdlrm
smtplib.cpython-36.pyc353400644editdlrm
sndhdr.cpython-36.pyc69130644editdlrm
socket.cpython-36.pyc220130644editdlrm
socketserver.cpython-36.pyc242500644editdlrm
sre_compile.cpython-36.pyc102780644editdlrm
sre_constants.cpython-36.pyc59720644editdlrm
sre_parse.cpython-36.pyc203580644editdlrm
ssl.cpython-36.pyc369390644editdlrm
stat.cpython-36.pyc38510644editdlrm
statistics.cpython-36.pyc181740644editdlrm
string.cpython-36.pyc79640644editdlrm
stringprep.cpython-36.pyc100300644editdlrm
struct.cpython-36.pyc3120644editdlrm
subprocess.cpython-36.pyc354850644editdlrm
sunau.cpython-36.pyc169380644editdlrm
symbol.cpython-36.pyc25170644editdlrm
symtable.cpython-36.pyc104280644editdlrm
sysconfig.cpython-36.pyc159160644editdlrm
tabnanny.cpython-36.pyc69750644editdlrm
tarfile.cpython-36.pyc630850644editdlrm
telnetlib.cpython-36.pyc180970644editdlrm
tempfile.cpython-36.pyc253090644editdlrm
textwrap.cpython-36.pyc136840644editdlrm
this.cpython-36.pyc12650644editdlrm
threading.cpython-36.pyc372340644editdlrm
timeit.cpython-36.pyc116030644editdlrm
token.cpython-36.pyc33200644editdlrm
tokenize.cpython-36.pyc186470644editdlrm
trace.cpython-36.pyc194950644editdlrm
traceback.cpython-36.pyc196460644editdlrm
tracemalloc.cpython-36.pyc172290644editdlrm
tty.cpython-36.pyc10720644editdlrm
turtle.cpython-36.pyc1317510644editdlrm
types.cpython-36.pyc82010644editdlrm
typing.cpython-36.pyc733060644editdlrm
uu.cpython-36.pyc34980644editdlrm
uuid.cpython-36.pyc209180644editdlrm
warnings.cpython-36.pyc132580644editdlrm
wave.cpython-36.pyc178850644editdlrm
weakref.cpython-36.pyc191430644editdlrm
webbrowser.cpython-36.pyc157970644editdlrm
xdrlib.cpython-36.pyc83020644editdlrm
zipapp.cpython-36.pyc55340644editdlrm
zipfile.cpython-36.pyc497280644editdlrm
_bootlocale.cpython-36.pyc9800644editdlrm
_collections_abc.cpython-36.pyc287970644editdlrm
_compat_pickle.cpython-36.pyc65660644editdlrm
_compression.cpython-36.pyc41040644editdlrm
_dummy_thread.cpython-36.pyc48510644editdlrm
_markupbase.cpython-36.pyc79910644editdlrm
_osx_support.cpython-36.pyc96840644editdlrm
_pydecimal.cpython-36.pyc1634020644editdlrm
_pyio.cpython-36.pyc713860644editdlrm
_sitebuiltins.cpython-36.pyc34350644editdlrm
_strptime.cpython-36.pyc159630644editdlrm
_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc187790644editdlrm
_threading_local.cpython-36.pyc64250644editdlrm
_weakrefset.cpython-36.pyc78280644editdlrm
__future__.cpython-36.pyc41670644editdlrm
__phello__.foo.cpython-36.pyc1190644editdlrm
Edit: /snap/core18/2979/usr/lib/python3.6/__pycache__/platform.cpython-36.pyc (29197B)
3 NqiF@sldZdZdZddlZddlZddlZddlZddlZddlZy ej Z Wn(e k rnej dkrfdZ nd Z YnXd Z d d d d d dddddd ZejdZddZejdejZejdddfddZddZejdejZejdejZejdejZdZd/d0Zejd1ejZejd2ejZejd3ejZddded4fd5d6Z d7d8Z!dddefd9d:Z"ddd?Z$ejd@Z%ddAdBZ&ddDddEddGddHddJddKddLddNddOddPddQi Z'ddGddRddSddTddUddViZ(ddWdXZ)dYdZZ*dd[d\Z+d]d^Z,dd_d`Z-dadbZ.dcddZ/ddedfZ0dgdhZ1ddidjZ2ddkdlZ3ddddpZ4ejddfdqdrZ5ej6dsdtZ7da8dudvZ9dwdxZ:dydzZ;d{d|ZddZ?ejdejZ@ejdejZAejdZBejdZCiZDdddZEddZFddZGddZHddZIddZJddZKddZLiZMdddZ eNdkrhdejOkp8dejOkZPdejOkoNdejOkZQeRe eQePejSddS)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.8Ndoswin32win16ZNULz /dev/nullz/etc (2) ZdevZalphaaZbetabcZRCrcplpz([0-9]+|[._+-])c Csfg}x\tj|D]N}|dkryt|d}d}Wn tk rNtj|d}YnX|j||fqW|S)Nz._+-rdr) _component_resplitint ValueError _ver_stagesgetextend)versionresultvtr/usr/lib/python3.6/platform.py_comparable_versions rsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)i@c Cst}ttjdrtjj|}t|d`}|j|}d}xH|t|krd|ksZd|krhtj ||}nd}| s|j t|kr|j|} | r|t |t|dd| }d}q<|sPdd |j D\} } } } }}| r| rd }n| r|d krd }| }n|| ||krx| }n^| rx|d krxd }|rR| sN||||krR|}|rx|t| d|krx||}|j }qszlibc_ver..Zlibcglibc) rhasattrospathr!openreadlen _libc_searchsearchendmaxgroups) executableZlibrZ chunksizeVfZbinaryposmchunkZlibcinitr(Z glibcversionZsoZthreadsZ soversionrrrlibc_versJ        r:c Csptjjdrd}td`}xX|D]P}|j}t|dkr |\}}nq |dkrV|j}q |dkr |jd}|d}q WWdQRX|||fStjjdrtdD}x<|D]4}|jd} t| dkr| d d krd | d |fSqWWdQRXtjjd rftjd } x:t t| d ddD]"} | | dd dkr| | =qW| rf| j d}| dd d}|||fS|||fS)z Tries some special tricks to get the distribution information in case the default method fails. Currently supports older SuSE Linux, Caldera OpenLinux and Slackware Linux distributions. z/var/adm/inst-log/infoSuSEZMIN_DIST_VERSIONZ DIST_IDENT-Nz/etc/.installedrZ OpenLinuxz/usr/lib/setupzslack-version- slackwarerArA) r*r+existsr,rr.stripisdirlistdirrangesort) distnameridr6lineZtvtagvaluevaluesZpkgZverfilesnrrr_dist_try_harders>               rOz(\w+)[-_](release|version)z'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?z1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?r;debianfedoraredhatcentosmandrakemandrivarocksr@ yellowdoggentoo UnitedLinux turbolinuxarchmageiaUbuntucCszd}d}tj|}|dk r&t|jStj|}|dk rDt|jS|jj}|rp|d}t|dkrp|d}d||fS)Nr rr>)_lsb_release_versionmatchtupler3_release_versionrCrr.) firstlinerrIr8lrrr_parse_release_file0s      rdz(?:DISTRIB_ID\s*=)\s*(.*)z(?:DISTRIB_RELEASE\s*=)\s*(.*)z(?:DISTRIB_CODENAME\s*=)\s*(.*)r>cCs(ddl}|jdtddt|||||S)NrzFdist() and linux_distribution() functions are deprecated in Python 3.5r<) stacklevel)warningswarnPendingDeprecationWarning_linux_distribution)rHrrIsupported_distsfull_distribution_namerfrrrlinux_distributionOs   rlcCsytddz}x`|D]X}tj|}|r4|jdj}tj|}|rP|jdj} tj|}|r|jdj} qW|r| r|| | fSWdQRXWnttfk rYnXyt j t } Wnt k r|||fSX| j xD| D]0} tj| }|dk r|j\} }| |kr| }PqWt|||Stt jjt | dddd}|j}WdQRXt|\} }}| rl|rl| }|rv|}|r|}|||fS)a Tries to determine the name of the Linux OS distribution name. The function first looks for a distribution release file in /etc and then reverts to _dist_try_harder() in case no suitable files are found. supported_dists may be given to define the set of Linux distributions to look for. It defaults to a list of currently supported Linux distributions identified by their release file name. If full_distribution_name is true (default), the full distribution read from the OS is returned. Otherwise the short name taken from supported_dists is used. Returns a tuple (distname, version, id) which default to the args given as parameters. z/etc/lsb-releaserr>Nzutf-8surrogateescape)encodingerrors)r,_distributor_id_file_rer0grouprC_release_file_re_codename_file_reEnvironmentErrorUnboundLocalErrorr*rE _UNIXCONFDIROSErrorrG_release_filenamer_r3rOr+joinreadlinerd)rHrrIrjrkZ etclsbrelrJr8Z _u_distnameZ _u_versionZ_u_idZetcfileZ _distnameZdummyr6rbZ_versionZ_idrrrriYsP            ricCs*ddl}|jdtddt||||ddS)aS Tries to determine the name of the Linux OS distribution name. The function first looks for a distribution release file in /etc and then reverts to _dist_try_harder() in case no suitable files are found. Returns a tuple (distname, version, id) which default to the args given as parameters. rNzFdist() and linux_distribution() functions are deprecated in Python 3.5r<)re)rjrk)rfrgrhri)rHrrIrjrfrrrdists  r}rmcCs&ddl}|jdtddtj|||S)z! Portable popen() interface. rNzuse os.popen insteadr<)re)rfrgDeprecationWarningr*popen)cmdmodebufsizerfrrrrsrc Csd|jd}|r|j|ytt|}Wntk r>|}YnXttt|}dj|dd}|S)z Normalize the version and build strings and return a single version string using the format major.minor.build (or patchlevel). .N)rappendmaprrliststrrz)rbuildrcZintsZstringsrrr _norm_versions   rz'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])c Cstj|kr|||fSxddD]R}y&tj|}|j}|jrBtdWn$tk rh}zwWYdd}~XqXPqW|||fS|j}tj |}|dk r|j \}}}|d dkr|dd }|d dkr|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. vercommand /c ver cmd /c verzcommand failedNr>r)rrrrArArArA) sysplatformr*rr-closerxrC _ver_outputr_r3r) systemreleaserZsupported_platformsrpipeinfoZwhyr8rrr _syscmd_vers,           rZ2000ZXPr<Z 2003ServerZpost2003Vista78rz8.1zpost8.1Z10Zpost10Z 2008ServerZ 2008ServerR2Z 2012ServerZ 2012ServerR2Zpost2012ServerR2c(Csyddlm}Wntk r,||||fSXyddlm}m}m}m}Wn,tk rvddlm}m}m}m}YnX|} | j p| dd\} } } dj | | | }t j | | fpt j | dfp|}| dd| | fkr$ydj | j }Wn8tk r"|ddd krd |dd}YnXt| d ddkrZtj | | fpXtj | dfpX|}d} z.y||d } || d d}Wn YnXWd| r|| X||||fS)Nr)getwindowsversion) OpenKeyEx QueryValueExCloseKeyHKEY_LOCAL_MACHINErz {0}.{1}.{2}r<zSP{} z Service Pack ZSPZ product_typez,SOFTWARE\Microsoft\Windows NT\CurrentVersionZ CurrentType)rr ImportErrorwinregrrrr_winregZplatform_versionformat_WIN32_CLIENT_RELEASESrZservice_pack_majorAttributeErrorgetattr_WIN32_SERVER_RELEASES)rrcsdptyperrrrrZwinverZmajminrkeyrrr win32_ver,sD  rcCsd}tjj|sdSy ddl}Wntk r4dSXt|d}|j|}WdQRX|d}d }tjj}|d krxd}|||fS) Nz0/System/Library/CoreServices/SystemVersion.plistrr"ZProductVersionr ppcPower MacintoshZPowerPC)r r r )rr) r*r+rBplistlibrr,loadunamemachine)fnrr6rr versioninforrrr _mac_ver_xml\s    rcCst}|dk r|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)rrrrrrrmac_verrs rc Cs@ddlm}y|j|}|dkr$|S|Stk r:|SXdS)Nr)System) java.langrZ getPropertyr)namedefaultrrLrrr _java_getprops  rc Csy ddl}Wntk r(||||fSXtd|}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) rvendorvminfoosinfojavaZvm_nameZ vm_releaseZ vm_vendoros_name os_versionos_archrrrjava_vers"              rc Cs|dkrd|||fS|dkr|dkr0|||fS|jd}|ryt|d}Wntk rbYn X|d}t||d<dj|}|dkrd }qd }n,|d krd }|r|d }qd }n |dkrd}|||fS)z Returns (system, release, version) aliased to common marketing names used for some systems. It also does some reordering of the information in some cases where it would otherwise cause confusion. ZRhapsodyzMacOS X ServerZSunOS5rrr6ZSolarisZIRIX64ZIRIXz (64bit)64bitrrWindows)rr)rrrrrz)rrrrcmajorrrr system_aliass2      rcGsdjddtt|D}|jdd}|jdd}|jdd}|jdd}|jd d}|jd d}|jd d}|jd d}|jd d}x|jdd}||krP|}qWx|ddkr|dd}qW|S)zq Helper to format the platform string in a filename compatible format e.g. "system-version-machine". r=css|]}|jVqdS)N)rC)r%xrrr sz_platform.. _/\:;"()unknownr z--r>NrArA)rzfilterr.replace)argsrZcleanedrrr _platforms$          rcCsDy ddl}Wntk r |SXy|jStk r>|SXdS)z8 Helper to determine the node name of this machine. rN)socketrZ gethostnamerx)rrrrr_node s rcCsFtjj|}x4tjj|r@tjjtjjtjj|tj|}qW|S)zT In case filepath is a symlink, follow it until a real file is reached. )r*r+abspathislinknormpathrzdirnamereadlink)filepathrrr_follow_symlinkss  "rc Cshtjdkr|Sytjd|tf}Wnttfk r<|SX|jj}|j }| s\|r`|S|SdS)z. Interface to the system's uname command. rrrzuname %s 2> %sN)rrr) rrr*rDEV_NULLrrxr-rCr)Zoptionrr6outputrrrr _syscmd_uname#s   rc Cs|tjd kr|St|}ytjd|gtjtjd}Wnttfk rJ|SX|j dj d}|j }| sp|rt|S|SdS) 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. rrrr|)stdoutstderrrzlatin-1N)rrr) rrr subprocessPopenPIPEZSTDOUTrrxZ communicater$wait)targetrprocrrrrr _syscmd_file5s   r WindowsPErMSDOS)rrrc Cs.|sLddl}y|jd}Wn |jk r:|jd}YnXt|dd}|r\t|d}nd}| r|tjkrtjtkrttj\}}|r|}|r|}||fSd|kr||fSd |krd }nd |krd }n d |krd}d|krd}n@d|krd|krd}nd}n d|krd}nd|kr&d}n||fS)a Queries the given executable (defaults to the Python interpreter binary) for various architecture information. Returns a tuple (bits, linkage) which contains information about the bit architecture and the linkage format used for the executable. Both values are returned as strings. Values that cannot be determined are returned as given by the parameter presets. If bits is given as '', the sizeof(pointer) (or sizeof(long) on Python version < 1.5.2) is used as indicator for the supported pointer size. The function relies on the system's "file" command to do the actual work. This is available on most if not all Unix platforms. On some non-Unix platforms where the "file" command does not exist and the executable is set to the Python interpreter binary defaults from _default_architecture are used. rNPrcbitr r4z32-bit32bitZN32Zn32bitz64-bitrZELFZPErrZCOFFzMS-DOSr) structZcalcsizeerrorrrrr4r_default_architecture)r4bitslinkagersizeZfileoutr rcrrr architectureYsL       r uname_resultz-system node release version machine processorcCsd}tdk rtSd}ytj\}}}}}Wntk rBd}YnX|sdttd|||||f r|rtj}d}d}t}d}d}|dkrt \}}}} |r|rd}|sdtj krtj j dd}ntj j dd}|stj j d|}|rrZPROCESSOR_ARCHITEW6432ZPROCESSOR_ARCHITECTUREZPROCESSOR_IDENTIFIERzMicrosoft WindowsrZ Microsoftz6.0rrrrZ16bitrJavaz, ZOpenVMS0zSYI$_CPUZAlphaZVAXz-pr)rr) _uname_cacher*rrrrrrrrenvironrrrrzvms_librZgetsyirr)Z no_os_uname processorrnoderrrZuse_syscmd_verrrrrrrZcsidZ cpu_numberrrrrs                   rcCstjS)z Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'. An empty string is returned if the value cannot be determined. )rrrrrrr<srcCstjS)z Returns the computer's network name (which may not be fully qualified) An empty string is returned if the value cannot be determined. )rrrrrrrEsrcCstjS)z Returns the system's release, e.g. '2.2.0' or 'NT' An empty string is returned if the value cannot be determined. )rrrrrrrOsrcCstjS)z Returns the system's release version, e.g. '#3 on degas' An empty string is returned if the value cannot be determined. )rrrrrrrXsrcCstjS)zt Returns the machine type, e.g. 'i386' An empty string is returned if the value cannot be determined. )rrrrrrrasrcCstjS)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. )rrrrrrrjs rzL([\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|dkrtj}tj|d}|dk r&|Sd|krd}|jdrHtj|}n tj|}|dkrjtdt ||j \}}}d}d}ntj jdrd}t j|}|dkrtdt ||j \}}}} } |dkrd}tj }nd|kr"d}t j|}|dkr td t ||j \}}}} d}n\t j|}|dkrFtd t ||j \}}}} }d }|dkrld}n| r~|d | }ttd rtj\} } } n)rrrrrpython_version srcCsttdjdS)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>r)r`rrrrrrpython_version_tuples rcCs tdS)z Returns a string identifying the Python implementation branch. For CPython this is the Subversion branch from which the Python binary was built. If not available, an empty string is returned. r<)rrrrr python_branch!s rcCs tdS)z Returns a string identifying the Python implementation revision. For CPython this is the Subversion revision from which the Python binary was built. If not available, an empty string is returned. r)rrrrrpython_revision/s rcCstddS)zh Returns a tuple (buildno, builddate) stating the Python build number and date as strings. rr)rrrrr python_build<srcCs tdS)zS Returns a string identifying the compiler used for compiling Python. r)rrrrrpython_compilerDsrcCstj||fd}|dk r|St\}}}}}}||kr:d}|rPt|||\}}}|dkrt|\} } } } |rxt||} nt|||| } n.|d kr tj"tjddt t d\}}}WdQRX|r| rt||||d|||} n$t t j \}}t||||d||} n|dkr\t\}}}\}}}|s8| rFt|||} nt|||d |||} n\|d kr|rxt||} n t|||} n2|rt||} n tt 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 rLinuxignorez?dist\(\) and linux_distribution\(\) functions are deprecated .*withrZonZMacOS)r)_platform_cacherrrrrrfcatch_warningsfilterwarningsrhr}r:rr4rr)aliasedterserrrrrrrZrelZversrrrrHZ distversionZdistidZlibcnameZ libcversionrmrrrrrrrrrrrPs\               r__main__r"z--terseZ nonaliasedz --nonaliased)rrr)r;rPrQrRrSrTrUrVr@rWrXrYrZr[r\r]rA)rmrA)r rrr)r r r r$)rr)rr>)rr<)rN)rr)rr>)rr<)rr)rN)rr)rN)rr<)rr)rr>)rr<)rr)rN)r r r r r r r )r r%r r r r r r r )r r r&r')r )r )r )r r)r r)r r)N)rr)T__doc__Z __copyright__ __version__ collectionsrr*rerrfdevnullrrrrwrcompilerrASCIIr/r4r:rOryr^raZ_supported_distsrdIrqrsrtrlrir}rrrrrrrrrrrrrrrrrrr namedtuplerrrrrrrrrrr rrr rrrrrrrrr__name__argvr"r!printexitrrrr se      :2 I    0 0  #6   T       k      [