/opt/alt/python33/lib64/python3.3/__pycache__
NameSizeModeActions
abc.cpython-33.pyc96150644editdlrm
abc.cpython-33.pyo95490644editdlrm
aifc.cpython-33.pyc361160644editdlrm
aifc.cpython-33.pyo361160644editdlrm
antigravity.cpython-33.pyc10690644editdlrm
antigravity.cpython-33.pyo10690644editdlrm
argparse.cpython-33.pyc940130644editdlrm
argparse.cpython-33.pyo938200644editdlrm
ast.cpython-33.pyc153870644editdlrm
ast.cpython-33.pyo153870644editdlrm
asynchat.cpython-33.pyc113410644editdlrm
asynchat.cpython-33.pyo113410644editdlrm
asyncore.cpython-33.pyc254730644editdlrm
asyncore.cpython-33.pyo254730644editdlrm
base64.cpython-33.pyc154590644editdlrm
base64.cpython-33.pyo151980644editdlrm
bdb.cpython-33.pyc260120644editdlrm
bdb.cpython-33.pyo260120644editdlrm
binhex.cpython-33.pyc191020644editdlrm
binhex.cpython-33.pyo191020644editdlrm
bisect.cpython-33.pyc33680644editdlrm
bisect.cpython-33.pyo33680644editdlrm
bz2.cpython-33.pyc192120644editdlrm
bz2.cpython-33.pyo192120644editdlrm
calendar.cpython-33.pyc387950644editdlrm
calendar.cpython-33.pyo387950644editdlrm
cgi.cpython-33.pyc369260644editdlrm
cgi.cpython-33.pyo369260644editdlrm
cgitb.cpython-33.pyc137890644editdlrm
cgitb.cpython-33.pyo137890644editdlrm
chunk.cpython-33.pyc64220644editdlrm
chunk.cpython-33.pyo64220644editdlrm
cmd.cpython-33.pyc160740644editdlrm
cmd.cpython-33.pyo160740644editdlrm
code.cpython-33.pyc117330644editdlrm
code.cpython-33.pyo117330644editdlrm
codecs.cpython-33.pyc464380644editdlrm
codecs.cpython-33.pyo464380644editdlrm
codeop.cpython-33.pyc76810644editdlrm
codeop.cpython-33.pyo76810644editdlrm
colorsys.cpython-33.pyc43710644editdlrm
colorsys.cpython-33.pyo43710644editdlrm
compileall.cpython-33.pyc87870644editdlrm
compileall.cpython-33.pyo87870644editdlrm
configparser.cpython-33.pyc608840644editdlrm
configparser.cpython-33.pyo608840644editdlrm
contextlib.cpython-33.pyc115140644editdlrm
contextlib.cpython-33.pyo115140644editdlrm
copy.cpython-33.pyc100400644editdlrm
copy.cpython-33.pyo99480644editdlrm
copyreg.cpython-33.pyc57480644editdlrm
copyreg.cpython-33.pyo57040644editdlrm
cProfile.cpython-33.pyc70830644editdlrm
cProfile.cpython-33.pyo70830644editdlrm
crypt.cpython-33.pyc30780644editdlrm
crypt.cpython-33.pyo30780644editdlrm
csv.cpython-33.pyc178400644editdlrm
csv.cpython-33.pyo178400644editdlrm
datetime.cpython-33.pyc780030644editdlrm
datetime.cpython-33.pyo756790644editdlrm
decimal.cpython-33.pyc2127810644editdlrm
decimal.cpython-33.pyo2127810644editdlrm
difflib.cpython-33.pyc698400644editdlrm
difflib.cpython-33.pyo697890644editdlrm
dis.cpython-33.pyc112330644editdlrm
dis.cpython-33.pyo112330644editdlrm
doctest.cpython-33.pyc985250644editdlrm
doctest.cpython-33.pyo981630644editdlrm
dummy_threading.cpython-33.pyc13630644editdlrm
dummy_threading.cpython-33.pyo13630644editdlrm
filecmp.cpython-33.pyc113310644editdlrm
filecmp.cpython-33.pyo113310644editdlrm
fileinput.cpython-33.pyc177440644editdlrm
fileinput.cpython-33.pyo177440644editdlrm
fnmatch.cpython-33.pyc38210644editdlrm
fnmatch.cpython-33.pyo38210644editdlrm
formatter.cpython-33.pyc274240644editdlrm
formatter.cpython-33.pyo274240644editdlrm
fractions.cpython-33.pyc242130644editdlrm
fractions.cpython-33.pyo242130644editdlrm
ftplib.cpython-33.pyc450290644editdlrm
ftplib.cpython-33.pyo450290644editdlrm
functools.cpython-33.pyc158210644editdlrm
functools.cpython-33.pyo158210644editdlrm
genericpath.cpython-33.pyc37650644editdlrm
genericpath.cpython-33.pyo37650644editdlrm
getopt.cpython-33.pyc81130644editdlrm
getopt.cpython-33.pyo80680644editdlrm
getpass.cpython-33.pyc55560644editdlrm
getpass.cpython-33.pyo55560644editdlrm
gettext.cpython-33.pyc209130644editdlrm
gettext.cpython-33.pyo209130644editdlrm
glob.cpython-33.pyc32930644editdlrm
glob.cpython-33.pyo32930644editdlrm
gzip.cpython-33.pyc248760644editdlrm
gzip.cpython-33.pyo248160644editdlrm
hashlib.cpython-33.pyc62060644editdlrm
hashlib.cpython-33.pyo62060644editdlrm
heapq.cpython-33.pyc162350644editdlrm
heapq.cpython-33.pyo162350644editdlrm
hmac.cpython-33.pyc58170644editdlrm
hmac.cpython-33.pyo58170644editdlrm
imaplib.cpython-33.pyc569950644editdlrm
imaplib.cpython-33.pyo537260644editdlrm
imghdr.cpython-33.pyc55300644editdlrm
imghdr.cpython-33.pyo55300644editdlrm
imp.cpython-33.pyc125770644editdlrm
imp.cpython-33.pyo125770644editdlrm
inspect.cpython-33.pyc817110644editdlrm
inspect.cpython-33.pyo817110644editdlrm
io.cpython-33.pyc42830644editdlrm
io.cpython-33.pyo42830644editdlrm
ipaddress.cpython-33.pyc817980644editdlrm
ipaddress.cpython-33.pyo817980644editdlrm
keyword.cpython-33.pyc22100644editdlrm
keyword.cpython-33.pyo22100644editdlrm
linecache.cpython-33.pyc38700644editdlrm
linecache.cpython-33.pyo38700644editdlrm
locale.cpython-33.pyc538620644editdlrm
locale.cpython-33.pyo538620644editdlrm
lzma.cpython-33.pyc186630644editdlrm
lzma.cpython-33.pyo186630644editdlrm
macpath.cpython-33.pyc80210644editdlrm
macpath.cpython-33.pyo80210644editdlrm
macurl2path.cpython-33.pyc25610644editdlrm
macurl2path.cpython-33.pyo25610644editdlrm
mailbox.cpython-33.pyc992890644editdlrm
mailbox.cpython-33.pyo991500644editdlrm
mailcap.cpython-33.pyc81150644editdlrm
mailcap.cpython-33.pyo81150644editdlrm
mimetypes.cpython-33.pyc202480644editdlrm
mimetypes.cpython-33.pyo202480644editdlrm
modulefinder.cpython-33.pyc228520644editdlrm
modulefinder.cpython-33.pyo227700644editdlrm
netrc.cpython-33.pyc55220644editdlrm
netrc.cpython-33.pyo55220644editdlrm
nntplib.cpython-33.pyc469840644editdlrm
nntplib.cpython-33.pyo469840644editdlrm
ntpath.cpython-33.pyc176360644editdlrm
ntpath.cpython-33.pyo176360644editdlrm
nturl2path.cpython-33.pyc20830644editdlrm
nturl2path.cpython-33.pyo20830644editdlrm
numbers.cpython-33.pyc188590644editdlrm
numbers.cpython-33.pyo188590644editdlrm
opcode.cpython-33.pyc59710644editdlrm
opcode.cpython-33.pyo59710644editdlrm
optparse.cpython-33.pyc707610644editdlrm
optparse.cpython-33.pyo706780644editdlrm
os.cpython-33.pyc384310644editdlrm
os.cpython-33.pyo384310644editdlrm
os2emxpath.cpython-33.pyc52380644editdlrm
os2emxpath.cpython-33.pyo52380644editdlrm
pdb.cpython-33.pyc629640644editdlrm
pdb.cpython-33.pyo628920644editdlrm
pickle.cpython-33.pyc531300644editdlrm
pickle.cpython-33.pyo528970644editdlrm
pickletools.cpython-33.pyc675040644editdlrm
pickletools.cpython-33.pyo663350644editdlrm
pipes.cpython-33.pyc101470644editdlrm
pipes.cpython-33.pyo101470644editdlrm
pkgutil.cpython-33.pyc233760644editdlrm
pkgutil.cpython-33.pyo233760644editdlrm
platform.cpython-33.pyc404530644editdlrm
platform.cpython-33.pyo404530644editdlrm
plistlib.cpython-33.pyc235430644editdlrm
plistlib.cpython-33.pyo234490644editdlrm
poplib.cpython-33.pyc146030644editdlrm
poplib.cpython-33.pyo146030644editdlrm
posixpath.cpython-33.pyc136890644editdlrm
posixpath.cpython-33.pyo136890644editdlrm
pprint.cpython-33.pyc133000644editdlrm
pprint.cpython-33.pyo131230644editdlrm
profile.cpython-33.pyc187800644editdlrm
profile.cpython-33.pyo184890644editdlrm
pstats.cpython-33.pyc323010644editdlrm
pstats.cpython-33.pyo323010644editdlrm
pty.cpython-33.pyc57950644editdlrm
pty.cpython-33.pyo57950644editdlrm
pyclbr.cpython-33.pyc110450644editdlrm
pyclbr.cpython-33.pyo110450644editdlrm
pydoc.cpython-33.pyc1225580644editdlrm
pydoc.cpython-33.pyo1224800644editdlrm
py_compile.cpython-33.pyc76990644editdlrm
py_compile.cpython-33.pyo76990644editdlrm
queue.cpython-33.pyc120380644editdlrm
queue.cpython-33.pyo120380644editdlrm
quopri.cpython-33.pyc79970644editdlrm
quopri.cpython-33.pyo76870644editdlrm
random.cpython-33.pyc237740644editdlrm
random.cpython-33.pyo237740644editdlrm
re.cpython-33.pyc164520644editdlrm
re.cpython-33.pyo164520644editdlrm
reprlib.cpython-33.pyc83140644editdlrm
reprlib.cpython-33.pyo83140644editdlrm
rlcompleter.cpython-33.pyc64760644editdlrm
rlcompleter.cpython-33.pyo64760644editdlrm
runpy.cpython-33.pyc104850644editdlrm
runpy.cpython-33.pyo104850644editdlrm
sched.cpython-33.pyc82470644editdlrm
sched.cpython-33.pyo82470644editdlrm
shelve.cpython-33.pyc127620644editdlrm
shelve.cpython-33.pyo127620644editdlrm
shlex.cpython-33.pyc93940644editdlrm
shlex.cpython-33.pyo93940644editdlrm
shutil.cpython-33.pyc413740644editdlrm
shutil.cpython-33.pyo413740644editdlrm
site.cpython-33.pyc255970644editdlrm
site.cpython-33.pyo255970644editdlrm
smtpd.cpython-33.pyc343270644editdlrm
smtpd.cpython-33.pyo343270644editdlrm
smtplib.cpython-33.pyc411750644editdlrm
smtplib.cpython-33.pyo410810644editdlrm
sndhdr.cpython-33.pyc85480644editdlrm
sndhdr.cpython-33.pyo85480644editdlrm
socket.cpython-33.pyc184350644editdlrm
socket.cpython-33.pyo183820644editdlrm
socketserver.cpython-33.pyc313750644editdlrm
socketserver.cpython-33.pyo313750644editdlrm
sre_compile.cpython-33.pyc123190644editdlrm
sre_compile.cpython-33.pyo121380644editdlrm
sre_constants.cpython-33.pyc64920644editdlrm
sre_constants.cpython-33.pyo64920644editdlrm
sre_parse.cpython-33.pyc255610644editdlrm
sre_parse.cpython-33.pyo255610644editdlrm
ssl.cpython-33.pyc282640644editdlrm
ssl.cpython-33.pyo282640644editdlrm
stat.cpython-33.pyc45830644editdlrm
stat.cpython-33.pyo45830644editdlrm
string.cpython-33.pyc103350644editdlrm
string.cpython-33.pyo103350644editdlrm
stringprep.cpython-33.pyc161030644editdlrm
stringprep.cpython-33.pyo160310644editdlrm
struct.cpython-33.pyc4070644editdlrm
struct.cpython-33.pyo4070644editdlrm
subprocess.cpython-33.pyc559780644editdlrm
subprocess.cpython-33.pyo558450644editdlrm
sunau.cpython-33.pyc236770644editdlrm
sunau.cpython-33.pyo236770644editdlrm
symbol.cpython-33.pyc30490644editdlrm
symbol.cpython-33.pyo30490644editdlrm
symtable.cpython-33.pyc173490644editdlrm
symtable.cpython-33.pyo172120644editdlrm
sysconfig.cpython-33.pyc223060644editdlrm
sysconfig.cpython-33.pyo223060644editdlrm
tabnanny.cpython-33.pyc101820644editdlrm
tabnanny.cpython-33.pyo101820644editdlrm
tarfile.cpython-33.pyc881300644editdlrm
tarfile.cpython-33.pyo881300644editdlrm
telnetlib.cpython-33.pyc271230644editdlrm
telnetlib.cpython-33.pyo271230644editdlrm
tempfile.cpython-33.pyc308500644editdlrm
tempfile.cpython-33.pyo308500644editdlrm
textwrap.cpython-33.pyc141750644editdlrm
textwrap.cpython-33.pyo140830644editdlrm
this.cpython-33.pyc14290644editdlrm
this.cpython-33.pyo14290644editdlrm
threading.cpython-33.pyc496310644editdlrm
threading.cpython-33.pyo487700644editdlrm
timeit.cpython-33.pyc136170644editdlrm
timeit.cpython-33.pyo136170644editdlrm
token.cpython-33.pyc43970644editdlrm
token.cpython-33.pyo43970644editdlrm
tokenize.cpython-33.pyc246200644editdlrm
tokenize.cpython-33.pyo245640644editdlrm
trace.cpython-33.pyc316190644editdlrm
trace.cpython-33.pyo315560644editdlrm
traceback.cpython-33.pyc145130644editdlrm
traceback.cpython-33.pyo145130644editdlrm
tty.cpython-33.pyc14790644editdlrm
tty.cpython-33.pyo14790644editdlrm
types.cpython-33.pyc37690644editdlrm
types.cpython-33.pyo37690644editdlrm
uu.cpython-33.pyc48760644editdlrm
uu.cpython-33.pyo48760644editdlrm
uuid.cpython-33.pyc259170644editdlrm
uuid.cpython-33.pyo258390644editdlrm
warnings.cpython-33.pyc158380644editdlrm
warnings.cpython-33.pyo148810644editdlrm
wave.cpython-33.pyc250250644editdlrm
wave.cpython-33.pyo248170644editdlrm
weakref.cpython-33.pyc184420644editdlrm
weakref.cpython-33.pyo184420644editdlrm
webbrowser.cpython-33.pyc261110644editdlrm
webbrowser.cpython-33.pyo260660644editdlrm
xdrlib.cpython-33.pyc125230644editdlrm
xdrlib.cpython-33.pyo125230644editdlrm
zipfile.cpython-33.pyc590100644editdlrm
zipfile.cpython-33.pyo589450644editdlrm
_compat_pickle.cpython-33.pyc55060644editdlrm
_compat_pickle.cpython-33.pyo55060644editdlrm
_dummy_thread.cpython-33.pyc60490644editdlrm
_dummy_thread.cpython-33.pyo60490644editdlrm
_markupbase.cpython-33.pyc114560644editdlrm
_markupbase.cpython-33.pyo112400644editdlrm
_osx_support.cpython-33.pyc138340644editdlrm
_osx_support.cpython-33.pyo138340644editdlrm
_pyio.cpython-33.pyc853190644editdlrm
_pyio.cpython-33.pyo852930644editdlrm
_strptime.cpython-33.pyc196490644editdlrm
_strptime.cpython-33.pyo196490644editdlrm
_sysconfigdata.cpython-33.pyc236720644editdlrm
_sysconfigdata.cpython-33.pyo236720644editdlrm
_threading_local.cpython-33.pyc87250644editdlrm
_threading_local.cpython-33.pyo87250644editdlrm
_weakrefset.cpython-33.pyc133080644editdlrm
_weakrefset.cpython-33.pyo133080644editdlrm
__future__.cpython-33.pyc50110644editdlrm
__future__.cpython-33.pyo50110644editdlrm
__phello__.cpython-33.pyc1460644editdlrm
__phello__.cpython-33.pyo1460644editdlrm
Edit: /opt/alt/python33/lib64/python3.3/__pycache__/platform.cpython-33.pyc (40453B)
f6c@sWdZdZdZddlZddlZddlZddlZddlZy ejZ Wn0e k rej dkrd Z nd Z YnXd Z ej d ejZejd d dddZddZej dejZej dejZej dejZdZd%d&Zd d d ed'd(d)Zd d d ed*d+Zd,dd-d.Zd d/d0Zej d1Zd d d dd2d3Zd d4d5Zd d d d d6d7Zdd8d9Z!d:d;Z"d<d=Z#d>d?Z$d dd d@dAZ%dBdCZ&d d dddDdEZ'dFdGZ(dHdIZ)d dJdKZ*dLdMZ+d dNdOZ,d dPdQZ-idd6dd6dd6Z.ejd d dUdVZ/ej0dWdXZ1da2dYdZZ3d[d\Z4d]d^Z5d_d`Z6dadbZ7dcddZ8dedfZ9ej dgejZ:ej dhejZ;ej diZ<ej djZ=iZ>ddkdlZ?dmdnZ@dodpZAdqdrZBdsdtZCdudvZDdwdxZEdydzZFiZGddd{d|Z eHd}krSd~ejIkpdejIkZJdejIko-dejIkZKeLe eKeJejMdndS(u8 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. u 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 ! u1.0.7iNudosuwin32uwin16uos2uNULu /dev/nullu/etcsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)ui@cCsttjdr'tjj|}nt|d}|j|}d}xPd|ksfd|kr{tj||}nd }|s|j|}|sPnd}qNndd|j D\}} } } } } |r| rd}n| r&|d krd }| }q| |kr| }qni| r|d krd}| rY| |krY| }n| r|t |  d | kr|| }qqn|j }qN|j ||fS( u 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. urealpathurbislibcsGLIBCcSs1g|]'}|dk r'|jdn|qS(ulatin1N(uNoneudecode(u.0us((u-/opt/alt/python33/lib64/python3.3/platform.pyu s ulibc_ver..ulibcuglibcN( uhasattruosupathurealpathuopenureadu _libc_searchusearchuNoneugroupsulenuenduclose(u executableulibuversionu chunksizeufubinaryuposumulibcinituglibcu glibcversionusouthreadsu soversion((u-/opt/alt/python33/lib64/python3.3/platform.pyulibc_versF "        # ulibc_verc Cstjjdrd}xtdD]y}|j}t|dkr%|\}}nq%|dkrv|j}q%|dkr%|jd}|d}q%q%W|||fStjjdrxYtdD]H}|jd}t|dkr|dd krd |d |fSqWntjjd rtjd } xHt t| d ddD]*} | | d d dkr[| | =q[q[W| r| j d}| dd d }|||fSn|||fS(u 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. u/var/adm/inst-log/infouSuSEiuMIN_DIST_VERSIONu DIST_IDENTu-u/etc/.installediu OpenLinuxiu/usr/lib/setupNiuslack-version-u slackwareiii( uosupathuexistsuopenusplitulenustripuisdirulistdirurangeusort( udistnameuversionuidulineutvutaguvalueuvaluesupkguverfilesun((u-/opt/alt/python33/lib64/python3.3/platform.pyu_dist_try_harders:     "# u_dist_try_harderu(\w+)[-_](release|version)u'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?u1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?uSuSEudebianufedorauredhatucentosumandrakeumandrivaurocksu slackwareu yellowdogugentoou UnitedLinuxu turbolinuxuarchumageiacCsd}d}tj|}|dk r7t|jStj|}|dk rbt|jS|jj}|r|d}t|dkr|d}qnd||fS(Nuii( u_lsb_release_versionumatchuNoneutupleugroupsu_release_versionustripusplitulen(u firstlineuversionuidumul((u-/opt/alt/python33/lib64/python3.3/platform.pyu_parse_release_files   u_parse_release_fileicCs=ytjt}Wn"tjk r7|||fSYnX|jxd|D]L}tj|}|dk rI|j\}} ||kr|}PqqIqIWt |||St tj j t|ddddd} | j } WdQXt| \}} } |r|r|}n| r!| }n| r0| }n|||fS(u 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. uruencodinguutf-8uerrorsusurrogateescapeN(uosulistdiru _UNIXCONFDIRuerrorusortu_release_filenameumatchuNoneugroupsu_dist_try_harderuopenupathujoinureadlineu_parse_release_file(udistnameuversionuidusupported_distsufull_distribution_nameuetcufileumu _distnameudummyufu firstlineu_versionu_id((u-/opt/alt/python33/lib64/python3.3/platform.pyulinux_distribution)s0         ulinux_distributioncCst|||d|ddS(uQ 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. usupported_distsufull_distribution_namei(ulinux_distribution(udistnameuversionuidusupported_dists((u-/opt/alt/python33/lib64/python3.3/platform.pyudistasudisturcCs5ddl}|jdtddtj|||S(u! Portable popen() interface. iNuuse os.popen insteadu stackleveli(uwarningsuwarnuDeprecationWarninguosupopen(ucmdumodeubufsizeuwarnings((u-/opt/alt/python33/lib64/python3.3/platform.pyupopenss upopenc Cs|jd}|r%|j|nytt|}Wntk rR|}YnXttt|}dj|dd}|S(u Normalize the version and build strings and return a single version string using the format major.minor.build (or patchlevel). u.Ni(usplituappendumapuintu ValueErrorulistustrujoin(uversionubuilduluintsustrings((u-/opt/alt/python33/lib64/python3.3/platform.pyu _norm_version{s  u _norm_versionu'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])c Cshtj|kr|||fSxdD]}y:t|}|j}|jrbtjdnWnRtjk r}zw#WYdd}~Xq#tk r}zw#WYdd}~Xq#XPq#W|||fS|j}t j |}|dk r[|j \}}}|d dkr)|dd }n|d dkrL|dd }nt |}n|||fS( u2 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 and OS/2. XXX Others too ? In case this fails, the given parameters are used as defaults. uverucommand /c veru cmd /c verucommand failedNiu.(uverucommand /c veru cmd /c veriiii(usysuplatformupopenureaducloseuosuerroruIOErrorustripu _ver_outputumatchuNoneugroupsu _norm_version( usystemureleaseuversionusupported_platformsucmdupipeuinfouwhyum((u-/opt/alt/python33/lib64/python3.3/platform.pyu _syscmd_vers0        u _syscmd_vercCsbyddlm}Wn'tk r=ddl}|j}YnXy|||SWn |SYnXdS(ue Read a value for name from the registry key. In case this fails, default is returned. i(uRegQueryValueExN(uwin32apiuRegQueryValueExu ImportErroruwinregu QueryValueEx(ukeyunameudefaultuRegQueryValueExuwinreg((u-/opt/alt/python33/lib64/python3.3/platform.pyu_win32_getvalues  u_win32_getvaluec!CsYyTddl}ddlm}m}m}m}ddlm} m} m} m } Wnt k ry t j Wn"t k r||||fSYnXXddl} t j }| j}| j}| j}| j} d} d} d} d}d}YnX|}|\}}}}}d|||d @f}t|d rV|jd krd |j}qn-|dd dkrd|d d}n|| krd}|dkr|dkrd}q|dkrd}q|dkrd}qd}q|dkrd}qn|| krd}|dkr(d}q|dkr||dkrId}q|dkr^d}q|dkrsd}qd}q|dkrt|d r|j}nm| }yR|| |}||d!\}}||kr|jd"d.kr|}nWntk rYnX|dkr:|| kr1d#}qd$}q|dkrd|| kr[d%}qd&}q|dkr|| krd'}qd(}qd)}qn)|sd*||f}n||||fSy || |}||d+Wn||||fSYnXt|d,d/d}t|d-|dfd}t||}||||||fS(0u  Get additional version information from the Windows Registry and return a tuple (version,csd,ptype) referring to version number, CSD level (service pack), and OS type (multi/single processor). As a hint: ptype returns 'Uniprocessor Free' on single processor NT machines and 'Multiprocessor Free' on multi processor machines. The 'Free' refers to the OS version being free of debugging code. It could also state 'Checked' which means the OS version uses debugging code, i.e. code that checks arguments, ranges, etc. (Thomas Heller). Note: this function works best with Mark Hammond's win32 package installed, but also on Python 2.3 and later. It obviously only runs on Win32 compatible platforms. iN(uRegQueryValueExu RegOpenKeyExu RegCloseKeyu GetVersionEx(uHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONiiiu%i.%i.%iiu service_packuuSP%si u Service Pack uSPu)SOFTWARE\Microsoft\Windows\CurrentVersioniu95i u98iZuMeupostMeiu2000u,SOFTWARE\Microsoft\Windows NT\CurrentVersionuNTuXPu 2003Serverupost2003iu product_typeu ProductNameuServeruVistau 2008Serveru7u 2008ServerR2u8u 2012Serverupost2012Serveru%i.%iu SystemRootuCurrentBuildNumberu CurrentTypei(ui(uwin32apiuRegQueryValueExu RegOpenKeyExu RegCloseKeyu GetVersionExuwin32conuHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONu ImportErrorusysugetwindowsversionuAttributeErroruwinregu QueryValueExu OpenKeyExuCloseKeyuhasattru service_packuservice_pack_majoru product_typeufindu WindowsErroru_win32_getvalueu _norm_version(ureleaseuversionucsduptypeuwin32apiuRegQueryValueExu RegOpenKeyExu RegCloseKeyu GetVersionExuHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONuwinregu VER_NT_SERVERuREG_SZuwinverumajuminubuildnouplaturegkeyu product_typeukeyunameutypeu keyCurVerubuild((u-/opt/alt/python33/lib64/python3.3/platform.pyu win32_vers "&                                   !                 u win32_verc Csmddlm}g}|j}xG|D]?}y|||Wq&ttfk rd||Yq&Xq&W|S(Ni(ugestalt(u_gestaltugestaltuappendu RuntimeErroruOSError(u selectorsudefaultugestaltuluappenduselector((u-/opt/alt/python33/lib64/python3.3/platform.pyu_mac_ver_lookups  u_mac_ver_lookupcCst|ddS(Ni(uhex(ubcd((u-/opt/alt/python33/lib64/python3.3/platform.pyu_bcd2strsu_bcd2strc Csyddl}Wntk r(dSYnXtd\}}|r|d@d?}|d@d?}|d @}||fdkrtd\}}}d|||f}qdt|||f}n|ridd6dd6dd 6j|d}nd}|||fS(u Thanks to Mark R. Levinson for mailing documentation links and code examples for this function. Documentation for the gestalt() API is available online at: http://www.rgaros.nl/gestalt/ iNusysvusysaiiiiii usys1usys2usys3u%i.%i.%iu%s.%i.%iu68kiuPowerPCiui386u(usysvusysa(i i(usys1usys2usys3(uuu(u_gestaltu ImportErroruNoneu_mac_ver_lookupu_bcd2struget( u_gestaltusysvusysaumajoruminorupatchureleaseumachineu versioninfo((u-/opt/alt/python33/lib64/python3.3/platform.pyu_mac_ver_gestalts&     u_mac_ver_gestaltc Csd}tjj|sdSyddl}Wntk rDdSYnX|j|}|d}d}tjj}|d krd}n|||fS( Nu0/System/Library/CoreServices/SystemVersion.plistiuProductVersionuuppcuPower MacintoshuPowerPC(uuu(uppcuPower Macintosh( uosupathuexistsuNoneuplistlibu ImportErroru readPlistuunameumachine(ufnuplistlibuplureleaseu versioninfoumachine((u-/opt/alt/python33/lib64/python3.3/platform.pyu _mac_ver_xmls     u _mac_ver_xmlcCs?t}|dk r|St}|dk r2|S|||fS(u< 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(u _mac_ver_xmluNoneu_mac_ver_gestalt(ureleaseu versioninfoumachineuinfo((u-/opt/alt/python33/lib64/python3.3/platform.pyumac_vers    umac_verc CsTddlm}y'|j|}|dkr2|S|SWntk rO|SYnXdS(Ni(uSystem(u java.languSystemu getPropertyuNoneuAttributeError(unameudefaultuSystemuvalue((u-/opt/alt/python33/lib64/python3.3/platform.pyu _java_getprops  u _java_getpropc Csyddl}Wn"tk r4||||fSYnXtd|}td|}|\}}}td|}td|}td|}|||f}|\}} } td| } td |}td | } || | f}||||fS( uV 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 ''). iNu java.vendoru java.versionu java.vm.nameujava.vm.vendorujava.vm.versionu java.os.archu java.os.nameujava.os.version(u java.langu ImportErroru _java_getprop( ureleaseuvendoruvminfouosinfoujavauvm_nameu vm_releaseu vm_vendoruos_nameu os_versionuos_arch((u-/opt/alt/python33/lib64/python3.3/platform.pyujava_vers"  ujava_verc Cs|dkrd|||fS|dkr|dkrB|||fS|jd}|ryt|d}Wntk rYqX|d}t||dUsu_platform..u u_u/u\u:u;u"u(u)uunknownuu--iNii(ujoinufilterulenureplace(uargsuplatformucleaned((u-/opt/alt/python33/lib64/python3.3/platform.pyu _platformOs$%  u _platformcCsWyddl}Wntk r(|SYnXy|jSWn|jk rR|SYnXdS(u8 Helper to determine the node name of this machine. iN(usocketu ImportErroru gethostnameuerror(udefaultusocket((u-/opt/alt/python33/lib64/python3.3/platform.pyu_nodeos  u_nodecCsetjj|}xLtjj|r`tjjtjjtjj|tj|}qW|S(uT In case filepath is a symlink, follow it until a real file is reached. (uosupathuabspathuislinkunormpathujoinudirnameureadlink(ufilepath((u-/opt/alt/python33/lib64/python3.3/platform.pyu_follow_symlinks~s  1u_follow_symlinksc Cstjdkr|Sytjd|tf}Wnttjfk rQ|SYnX|jj}|j }| s}|r|S|SdS(u. Interface to the system's uname command. udosuwin32uwin16uos2uuname %s 2> %sN(udosuwin32uwin16uos2( usysuplatformuosupopenuDEV_NULLuAttributeErroruerrorureadustripuclose(uoptionudefaultufuoutputurc((u-/opt/alt/python33/lib64/python3.3/platform.pyu _syscmd_unames   u _syscmd_unamec Cstjd kr|St|}y+tjd|gdtjdtj}Wnttj fk rk|SYnX|j dj d }|j }| s|r|S|Sd S( u 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. udosuwin32uwin16uos2ufileustdoutustderriulatin-1N(udosuwin32uwin16uos2( usysuplatformu_follow_symlinksu subprocessuPopenuPIPEuSTDOUTuAttributeErroruosuerroru communicateudecodeuwait(utargetudefaultuprocuoutputurc((u-/opt/alt/python33/lib64/python3.3/platform.pyu _syscmd_files     u _syscmd_fileu WindowsPEuWindowsuMSDOSc Cs|scddl}y|jd}Wn$|jk rK|jd}YnXt|dd}n|r{t|d}nd}| r|tjkrtjtkrttj\}}|r|}n|r|}qn||fSd|kr||fSd |krd }n*d |kr$d }nd |kr9d}nd|krNd}nTd|krxd|krod}qd}n*d|krd}nd|krd}n||fS(u 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. iNuPuliubituu executableu32-bitu32bituN32un32bitu64-bitu64bituELFuPEuWindowsu WindowsPEuCOFFuMS-DOSuMSDOS( ustructucalcsizeuerrorustru _syscmd_fileusysu executableuplatformu_default_architecture(u executableubitsulinkageustructusizeufileoutubul((u-/opt/alt/python33/lib64/python3.3/platform.pyu architecturesL                      u architectureu uname_resultu-system node release version machine processorcCsd}td k rtSd}ytj\}}}}}Wntk rUd}YnX|sttd |||||f rW|rtj}d}d}t }d}nd}|dkrPt \}}}} |r|rd}n|s/dtj krtj j dd}q/tj j dd}n|sPtj j d|}qPn|rt |\}}}|dkrd }q|d kr|d krd }d |d d krd}qd}qn|dkr|s|dkrd}qd}nd }qW|d ddkrWt\}} } } d}dj| }|sT| }qTqWn|dkr| sv|dkr|}d}nydd l} Wntk rYqX| jdd\}}|dkrd}qd}n|stdd}n|dkr d}n|dkr"d}n|dkr7d}n|dkrLd}n|dkrad}n|dkrvd}n|d kr|d krd }d}nt||||||atS(ui 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 ''. iuiuwin32uPROCESSOR_ARCHITEW6432uPROCESSOR_ARCHITECTUREuPROCESSOR_IDENTIFIERuMicrosoft WindowsuWindowsu Microsoftu6.0NiuVistauwin16u32bitu16bitiujavauJavau, uOpenVMSu0uSYI$_CPUiuAlphauVAXu-puunknown(uwin32uwin16(u _uname_cacheuNoneuosuunameuAttributeErrorulistufilterusysuplatformu_nodeu win32_veruenvironugetu _syscmd_verujava_verujoinuvms_libu ImportErrorugetsyiu _syscmd_unameu uname_result(u no_os_unameu processorusystemunodeureleaseuversionumachineuuse_syscmd_verucsduptypeuvendoruvminfouosinfouvms_libucsidu cpu_number((u-/opt/alt/python33/lib64/python3.3/platform.pyuunames    +                                  uunamecCs tjS(u Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'. An empty string is returned if the value cannot be determined. (uunameusystem(((u-/opt/alt/python33/lib64/python3.3/platform.pyusystemsusystemcCs tjS(u Returns the computer's network name (which may not be fully qualified) An empty string is returned if the value cannot be determined. (uunameunode(((u-/opt/alt/python33/lib64/python3.3/platform.pyunodesunodecCs tjS(u Returns the system's release, e.g. '2.2.0' or 'NT' An empty string is returned if the value cannot be determined. (uunameurelease(((u-/opt/alt/python33/lib64/python3.3/platform.pyureleasesureleasecCs tjS(u Returns the system's release version, e.g. '#3 on degas' An empty string is returned if the value cannot be determined. (uunameuversion(((u-/opt/alt/python33/lib64/python3.3/platform.pyuversionsuversioncCs tjS(ut Returns the machine type, e.g. 'i386' An empty string is returned if the value cannot be determined. (uunameumachine(((u-/opt/alt/python33/lib64/python3.3/platform.pyumachinesumachinecCs tjS(u 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. (uunameu processor(((u-/opt/alt/python33/lib64/python3.3/platform.pyu processors u processoruB([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[([^\]]+)\]?u;IronPython\s*([\d\.]+)(?: \(([\d\.]+)\))? on (.NET [\d\.]+)uU([\d.]+)\s*\(IronPython\s*[\d.]+\s*\(([\d.]+)\) on ([\w.]+ [\d.]+(?: \(\d+-bit\))?)\)uE([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[PyPy [^\]]+\]?cCs|dkrtj}ntj|d}|dk r:|Sd|krd}|jdrmtj|}ntj|}|dkrt dt |n|j \}}}d}d}n=tj jdr8d}t j|}|dkrt dt |n|j \}}}} } tj }nd|krd}tj|}|dkr~t dt |n|j \}}}} d}nct j|}|dkrt d t |n|j \}}}} }d }|d | }ttd r&tj\} } } n0ttd rJtj\} } } n d} d} |jd} t| dkr| jddj| }n||| | |||f}|t|<|S(u 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. u IronPythonu*failed to parse IronPython sys.version: %suujavauJythonu&failed to parse Jython sys.version: %suPyPyu$failed to parse PyPy sys.version: %su'failed to parse CPython sys.version: %suCPythonu u _mercurialu subversionu.iu0N(uNoneusysuversionu_sys_version_cacheugetu startswithu_ironpython_sys_version_parserumatchu _ironpython26_sys_version_parseru ValueErrorureprugroupsuplatformu_sys_version_parseru_pypy_sys_version_parseruhasattru _mercurialu subversionusplitulenuappendujoin(u sys_versionuresultunameumatchuversionu alt_versionucompilerubuildnou builddateu buildtimeu_ubranchurevisionul((u-/opt/alt/python33/lib64/python3.3/platform.pyu _sys_versionsn              u _sys_versioncCs tdS(uR 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). i(u _sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyupython_implementation[s upython_implementationcCs tdS(u 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). i(u _sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyupython_versionhsupython_versioncCsttdjdS(u 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). iu.(utupleu _sys_versionusplit(((u-/opt/alt/python33/lib64/python3.3/platform.pyupython_version_tuplers upython_version_tuplecCs tdS(u 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. i(u _sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyu python_branch}s u python_branchcCs tdS(u 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. i(u _sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyupython_revisions upython_revisioncCstddS(uh Returns a tuple (buildno, builddate) stating the Python build number and date as strings. ii(u _sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyu python_buildsu python_buildcCs tdS(uS Returns a string identifying the compiler used for compiling Python. i(u _sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyupython_compilersupython_compilerc Cs[tj||fd}|dk r(|St\}}}}}}||krXd}n|r|t|||\}}}n|dkrt|\} } } } |rt||} qGt|||| } nw|d krYtd\}}}|r"| r"t||||d|||} qGtt j \}}t||||d||} n|dkrt \}}}\}}}|s| rt|||} qGt|||d|||} n|dkr|rt||} qGt|||} nH|rt||} n0t t j \}}t||||||} | t||f<| S( u 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. uuWindowsuLinuxuwithuJavauonuMacOSN(uLinux( u_platform_cacheugetuNoneuunameu system_aliasu win32_veru _platformudistulibc_verusysu executableujava_veru architecture(ualiaseduterseuresultusystemunodeureleaseuversionumachineu processorureluversucsduptypeuplatformudistnameu distversionudistidulibcnameu libcversionuruvuvminfouos_nameu os_versionuos_archubitsulinkage((u-/opt/alt/python33/lib64/python3.3/platform.pyuplatformsP          uplatformu__main__uterseu--terseu nonaliasedu --nonaliased(udosuwin32uwin16uos2(uSuSEudebianufedorauredhatucentosumandrakeumandrivaurocksu slackwareu yellowdogugentoou UnitedLinuxu turbolinuxuarchumageiai(uwin32uwin16udosuos2(uuu(uuu(uuu(uu WindowsPE(uuWindows(uuMSDOS(Nu__doc__u __copyright__u __version__u collectionsusysuosureu subprocessudevnulluDEV_NULLuAttributeErroruplatformu _UNIXCONFDIRucompileuASCIIu _libc_searchu executableulibc_veru_dist_try_harderu_release_filenameu_lsb_release_versionu_release_versionu_supported_distsu_parse_release_fileulinux_distributionudistupopenu _norm_versionu _ver_outputu _syscmd_veru_win32_getvalueu win32_veruNoneu_mac_ver_lookupu_bcd2stru_mac_ver_gestaltu _mac_ver_xmlumac_veru _java_getpropujava_veru system_aliasu _platformu_nodeu_follow_symlinksu _syscmd_unameu _syscmd_fileu_default_architectureu architectureu namedtupleu uname_resultu _uname_cacheuunameusystemunodeureleaseuversionumachineu processoru_sys_version_parseru_ironpython_sys_version_parseru _ironpython26_sys_version_parseru_pypy_sys_version_parseru_sys_version_cacheu _sys_versionupython_implementationupython_versionupython_version_tupleu python_branchupython_revisionu python_buildupython_compileru_platform_cacheu__name__uargvuterseualiaseduprintuexit(((u-/opt/alt/python33/lib64/python3.3/platform.pyu sd 0       8 0      5  2  (  # 6   T       d   R