ó
    F\hñ¸  ã                   ó~  • S r SrSrSSKrSSKrSSKrSSKrSSKrSSKr SSK	q	SSSSSSS	S	S
S
S.
rS rSLS jrSMS jr  SNS jrS r/ SQr/ SQrS rS rS rSOS jrS rSPS jr\R2                  " S/ SQ5      rSQS jrS rSRS jr\R2                  " S S!5      r  SSS" jrS# r S$ r!SMS% jr"S& r#SMS' jr$S(S)S*S.r%\RL                  SS4S+ jr'S, r( " S- S.5      r)S/ r* " S0 S1\R2                  " S2S35      5      r+Sq,S4 r-S5 r.S6 r/S7 r0S8 r1S9 r2S: r30 r4STS; jr5S< r6S= r7S> r8S? r9S@ r:SA r;SB r<0 r=SUSC jr>SDr?Sq@SE rASF rB\CSG:X  al  SH\Rˆ                  ;   =(       d    SI\Rˆ                  ;   rESJ\Rˆ                  ;  =(       a    SK\Rˆ                  ;  rF\G" \>" \F\E5      5        \R�                  " S5        gg! \
 a    Sq	 GN—f = f)Va&  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 usable 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 !

z1.0.8é    Né
   é   é   é(   é2   éÈ   )
ÚdevÚalphaÚaÚbetaÚbÚcÚRCÚrcÚplÚpc                 ó  • [         R                  " S5      n/ nUR                  U 5       H,  nUS;  d  M   [        US5      nSnUR                  XC45        M.     U$ ! [         a    [
        R                  US5      n N:f = f)Nz([0-9]+|[._+-])z._+-r   éd   r   )ÚreÚcompileÚsplitÚintÚ
ValueErrorÚ_ver_stagesÚgetÚextend)ÚversionÚcomponent_reÚresultÚvÚts        Ú/usr/lib/python3.13/platform.pyÚ_comparable_versionr#   ‘   s   € Ü—:’:Ð0Ó1€LØ€FØ×Ñ Ö(ˆØ�F�?ð*Ü˜˜2“J�Ø�ð �M‰M˜1˜&Ö!ñ )ð €Møô ó *Ü—O‘O A qÓ)’ð*ús   ¶AÁ A?Á>A?Ú c                 ó  • U (       d[   [         R                  " S5      nUR                  SS9n[        U5      S:X  a  [	        U5      $  [        R                  n U (       d  X4$ [        R                  " S[        R                  5      n[        n[         R                  R                  U 5      n [!        U S5       nUR#                  U5      n	Sn
U
[        U	5      :  Gak  SU	;   d  S	U	;   a  UR%                  Xš5      nOS
nU(       a  UR'                  5       [        U	5      :X  aB  UR#                  U5      nU(       a"  U	[)        U
[        U	5      S-
  5      S
 U-   n	Sn
MŽ  U(       d  OåUR+                  5        Vs/ s H  nUb  UR-                  S5      OUPM     snu  pïnnnnU(       a
  U(       d  SnOwU(       a   US:w  a  SnUnOeU" U5      U" U5      :”  a  UnOPU(       aI  US:w  aC  SnU(       a  U(       a  U" U5      U" U5      :”  a  UnU(       a  U[        U5      * S
 U:w  a  UU-   nUR'                  5       n
U
[        U	5      :  a  GMk  S
S
S
5        X4$ ! [
        [        [        4 a     GN"f = fs  snf ! , (       d  f       X4$ = f)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 usable for executables compiled using gcc.

The file is read and scanned in chunks of chunksize bytes.

ÚCS_GNU_LIBC_VERSIONé   )Úmaxsplité   sC   (__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)Úrbr   s   libcs   GLIBCNiè  Úlatin1ÚlibcÚglibc)ÚosÚconfstrr   ÚlenÚtupleÚAttributeErrorr   ÚOSErrorÚsysÚ
executabler   r   ÚASCIIr#   ÚpathÚrealpathÚopenÚreadÚsearchÚendÚmaxÚgroupsÚdecode)r5   Úlibr   Ú	chunksizeÚverÚpartsÚlibc_searchÚVÚfÚbinaryÚposÚmÚchunkÚsÚlibcinitr-   ÚglibcversionÚsoÚthreadsÚ	soversions                       r"   Úlibc_verrQ   ¡   s^  € ö ð	Ü—*’*Ð2Ó3ˆCà—I‘I q�IÐ)ˆEÜ�5‹z˜Q‹Ü˜U“|Ð#ð ô —^‘^ˆ
æà�<Ðä—*’*ð Bô DFÇ8Á8ó	M€Kô 	€Aô —‘×!Ñ! *Ó-€JÜ	ˆj˜$Ô	 1Ø—‘˜	Ó"ˆØˆØ”C˜“KÔØ˜&Ó  H°Ó$6Ø×&Ñ& vÓ3‘à�Þ˜Ÿ™›¤3 v£;Ó.ØŸ™˜yÓ)�ÞØ#¤C¨¬S°«[¸4Ñ-?Ó$@Ð$AÐBÀUÑJ�FØ�CÙÞØð Ÿ™œóE%â#�Að '(¡m�—‘˜Ô"¸Ò:Ù#ñE%ÑAˆH˜\¨2¨w¸	ö ¦Ø‘ÞØ˜'“>Ø!�CØ*‘GÙ�|“_¡q¨£zÓ1Ø*�GøÞØ˜'“>Ø �CÞ ®'±Q°y³\ÁAÀgÃJÓ5NØ"+˜Þ 7¬C°«L¨=¨>Ð#:¸gÓ#EØ")¨GÑ"3˜Ø—%‘%“'ˆCð? ”C˜“KÖ÷ 
 ðF ˆ<Ðøôq ¤
¬GÐ4ó 	âð	üòJE%÷! 
 Ô	ðF ˆ<Ðús1   ‰>I Â9B<I4Å5 I/ÆB0I4ÉI,É+I,É/I4É4
Jc           	      óô   • U R                  S5      nU(       a  UR                  U5         [        [        [        [        [
        U5      5      5      nSR                  USS 5      n U $ ! [         a    Un N$f = f)zNormalize the version and build strings and return a single
version string using the format major.minor.build (or patchlevel).
Ú.Né   )r   ÚappendÚlistÚmapÚstrr   r   Újoin)r   ÚbuildÚlÚstringss       r"   Ú_norm_versionr]   ñ   sm   € ð
 	�‰�cÓ€AÞØ	�‰�ŒðÜ”sœ3¤¤C¨£Ó,Ó-ˆð �h‰h�w˜r �{Ó#€GØ€Nøô ó ØŠðús   «'A( Á(A7Á6A7©Úwin32Úwin16Údosc           
      óÞ  • [         R                  U;  a  XU4$ SSKnS H,  n UR                  UUR                  UR                  SSSS9n  O   XU4$ [        R                  " S5      nUR                  5       nUR                  U5      n	U	b:  U	R                  5       u  pnUS   S	:X  a  USS nUS   S	:X  a  USS n[        U5      nXU4$ ! [
        UR                  4 a  n SnAMÈ  SnAff = f)
zþ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.

r   N)rB   zcommand /c verz
cmd /c verTÚlocale)ÚstdinÚstderrÚtextÚencodingÚshellz'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])éÿÿÿÿrS   )r4   ÚplatformÚ
subprocessÚcheck_outputÚDEVNULLr3   ÚCalledProcessErrorr   r   ÚstripÚmatchr>   r]   )
ÚsystemÚreleaser   Úsupported_platformsrk   ÚcmdÚinfoÚwhyÚ
ver_outputrI   s
             r"   Ú_syscmd_verrx   
  s  € ô ‡|�|Ð.Ó.Ø Ð'Ð'ó Û6ˆð	Ø×*Ñ*¨3Ø1;×1CÑ1CØ2<×2DÑ2DØ04Ø4<Ø15ð +ð 7ˆDñ ñ 7ð  Ð'Ð'ä—’ð -ó .€Jð
 �:‰:‹<€DØ×Ñ˜Ó€AØ�}Ø#$§8¡8£:Ñ ˆ˜à�2‰;˜#ÓØ˜c˜r�lˆGØ�2‰;˜#ÓØ˜c˜r�lˆGô   Ó(ˆØ˜GÐ#Ð#øô3 ˜×6Ñ6Ð7ó 	åûð	ús   £(CÃC,Ã'C,c                 óf  ^• [         (       d  [        S5      eSSS.U    n  [         R                  " SR                  SR	                  U5      U 5      5      R                  S5      nS U 5       nU Vs0 s H  oDS	   US
   _M     snmU4S jU 5       $ ! [         a    S q [        S5      ef = fs  snf )Nznot supportedÚWin32_OperatingSystemÚWin32_Processor)ÚOSÚCPUzSELECT {} FROM {}Ú,Ú c              3   óB   #   • U  H  oR                  S 5      v •  M     g7f)Ú=N)Ú	partition)Ú.0Úis     r"   Ú	<genexpr>Ú_wmi_query.<locals>.<genexpr>Q  s   é € Ð1ªD q—+‘+˜c×"Ð"ªDùs   ‚r   r)   c              3   ó.   >#   • U  H
  nTU   v •  M     g 7f©N© )rƒ   ÚkÚ	dict_datas     €r"   r…   r†   S  s   øé € Ð'¢$˜QˆI�aŽL¢$ùs   ƒ)Ú_wmir3   Ú
exec_queryÚformatrY   r   )ÚtableÚkeysÚdataÚ
split_datar„   r‹   s        @r"   Ú
_wmi_queryr“   A  sÁ   ø€ çŠ4Ü�oÓ&Ð&à%Ø ñð ñ€Eð'Ü�ŠÐ2×9Ñ9Ø�H‰H�T‹NØó 
ó ÷ ‰5�‹;ð 	ñ 2©DÓ1€JÙ%/Ó0¢Z �1‘�q˜‘t’¡ZÑ0€IÜ'¡$Ó'Ð'øô ó 'ØˆÜ�oÓ&Ð&ð'üò 1s   ¡AB Á2B.ÂB+))©r   r'   r   Úpost11))r   r   iðU  Ú11)©é   é   r   Ú10)©r˜   rT   r   z8.1)©r˜   r)   r   Ú8)©r˜   r'   r   Ú7)©r˜   r   r   ÚVista))é   r)   iÎ  ÚXP64)©r¢   r)   r   ÚXPMedia))r¢   r'   r   ÚXP)©r¢   r   r   Ú2000))r”   Úpost2025Server))r   r   iôe  Ú
2025Server))r   r   i|O  Ú
2022Server))r   r   icE  Ú
2019Server)r—   Ú
2016Server)r›   Ú2012ServerR2)rœ   Ú
2012Server)rž   Ú2008ServerR2)r    Ú
2008Server)r¤   Ú
2003Server)r§   Ú
2000Serverc                  ó   • [        5       S;   $ )N)ÚIoTUAPÚ
NanoServerÚWindowsCoreHeadlessÚ	IoTEdgeOS)Úwin32_editionr‰   ó    r"   Úwin32_is_iotr»   r  s   € Ü‹?ÐZÑZÐZrº   c                  óê   •  SS K n  SnU R                  U R                  U5       nU R                  US5      S   sS S S 5        $ ! , (       d  f       g = f! [         a     g f = f! [
         a     g f = f)Nr   ú,SOFTWARE\Microsoft\Windows NT\CurrentVersionÚ	EditionId)ÚwinregÚ	OpenKeyExÚHKEY_LOCAL_MACHINEÚQueryValueExr3   ÚImportError)r¿   ÚcvkeyÚkeys      r"   r¹   r¹   u  s�   € ð
Ûð	ØCˆEØ×!Ñ! &×";Ñ";¸UÔCÀsØ×*Ñ*¨3°Ó<¸QÑ?÷ D×CÖCð
 ûô ó 	Øàð	ûô ó Øð ðús>   ‚A% ‡A ¥Aº	A Á
AÁA ÁA Á
A"Á!A"Á%
A2Á1A2c                 ój  •  [        SSSSSS5      u  pp$n[        U5      S:H  nU(       a  US:w  a	  S	U S
U 3nOS	U 3nXX&4$ ! [         a     Of = f SSKJn  O! [
         a    XUS4s $ f = fU" 5       n[        USS5      S:H  n [        5       S   n [        [        U R                  S
5      5      u  pšnO=! [         a0    UR                  =(       d    US S u  pšnSR                  XšU5      n  Of = fUS S Xš4:X  a>   SR                  UR                  5      nO!! [         a    US S S:X  a  S	USS  -   n Of = f SS Kn SnUR!                  UR"                  U5       nUR%                  US5      S   nS S S 5        O1! , (       d  f       O#= f! [         a     Of = f! [
         a     Of = fXX&4$ )Nr|   ÚVersionÚProductTypeÚ	BuildTypeÚServicePackMajorVersionÚServicePackMinorVersionr'   Ú0ÚSPrS   r   )ÚgetwindowsversionTÚproduct_typer)   rT   z{0}.{1}.{2}zSP{}é   zService Pack r½   ÚCurrentType)r“   r   r3   r4   rÎ   rÃ   Úgetattrrx   rW   r   r   Úplatform_versionrŽ   Úservice_pack_majorr2   r¿   rÀ   rÁ   rÂ   )r   ÚcsdÚptyperÏ   ÚspmajorÚspminorÚ	is_clientrÎ   ÚwinverÚmajorÚminorrZ   r¿   rÄ   rÅ   s                  r"   Ú
_win32_verrÝ   „  sý  € ðÜ<FØØØØØ%Ø%ó=
Ñ8ˆ °ô ˜Ó&¨!Ñ+ˆ	Þ�w #“~Ø�w�i˜q  	Ð*‰Cà�w�i�.ˆCØ˜UÐ-Ð-øÜó Ùðúð)Þ)øÜó )Ø˜U DÐ(Ò(ð)úñ Ó €FÜ˜ °Ó3°qÑ8€Ið<Ü“- Ñ"ˆÜ!¤# w§}¡}°SÓ'9Ó:Ñˆ‘eøÜó <Ø$×5Ñ5×C¸ÀÀ¸Ñˆ�eØ×&Ñ& u°UÓ;Šð<úð ˆbˆq€z�e�^Ó#ð	&Ø—-‘- × 9Ñ 9Ó:‰CøÜó 	&Ø�3�Bˆx˜?Ó*Ø˜S  ˜X‘o�ùð	&úð
Ûð	ØCˆEØ×!Ñ! &×";Ñ";¸UÔCÀsØ×+Ñ+¨C°Ó?ÀÑB�÷ D×CÖCûäó 	Ùð	ûô ó Ùðúð ˜Ð)Ð)sŠ   ‚A A Á
AÁAÁA ÁA-Á,A-Â/B8 Â87C2Ã1C2Ä D ÄD:Ä9D:Ä>F! ÅF Å!F Å7F Æ 
FÆ
F ÆF Æ
FÆFÆ!
F.Æ-F.c                 óÞ   ^• Sn[        XU5      u  pp4U(       aQ  [        [        [        UR	                  S5      5      5      mU(       a  [
        O[        n[        U4S jU 5       U 5      n XX#4$ )NFrS   c              3   ó<   >#   • U  H  u  pUT::  d  M  Uv •  M     g 7frˆ   r‰   )rƒ   r    ÚrÚ
intversions      €r"   r…   Úwin32_ver.<locals>.<genexpr>Ç  s   øé € ÐB¢h™d˜a°!°z±/Ÿ™¢hùs   ƒ“	)rÝ   r1   rW   r   r   Ú_WIN32_CLIENT_RELEASESÚ_WIN32_SERVER_RELEASESÚnext)rr   r   rÕ   rÖ   rÙ   Úreleasesrá   s         @r"   Ú	win32_verrç   ¿  s^   ø€ Ø€Iä%/°¸eÓ%DÑ"€G�%æÜœ3œs G§M¡M°#Ó$6Ó7Ó8ˆ
Þ-6Õ)Ô<RˆÜÔB¡hÓBÀGÓLˆà˜SÐ'Ð'rº   c                  óL  • Sn [         R                  R                  U 5      (       d  g  SS Kn[        U S5       nUR                  U5      nS S S 5        WS   nSn[         R                  " 5       R                  nUS;   a  SnXEU4$ ! [         a     g f = f! , (       d  f       NP= f)Nz0/System/Library/CoreServices/SystemVersion.plistr   r*   ÚProductVersion©r$   r$   r$   )ÚppczPower MacintoshÚPowerPC)	r.   r7   ÚexistsÚplistlibrÃ   r9   ÚloadÚunameÚmachine)Úfnrî   rF   r   rr   Úversioninforñ   s          r"   Ú_mac_ver_xmlrô   Ì  s›   € Ø	;€BÜ�7‰7�>‰>˜"×ÑØðÛô 
ˆb�$Œ˜1Ø�]‰]˜1Óˆ÷ 
àÐ!Ñ"€GØ€KÜ�hŠh‹j× Ñ €GØÐ,Ó,àˆà Ð(Ð(øô ó Ùðú÷ 
�ús   ©B ¹BÂ
BÂBÂ
B#c                 ó(   • [        5       nUb  U$ XU4$ )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.
)rô   )rr   ró   rñ   ru   s       r"   Úmac_verrö   â  s#   € ô ‹>€DØÑØˆð  Ð(Ð(rº   ÚIOSVersionInfo)rq   rr   ÚmodelÚis_simulatorc                 ó€   • [         R                  S:X  a  SSKnUR                  5       nUb  [	        U6 $ [	        XX#5      $ )z·Get iOS version information, and return it as a namedtuple:
    (system, release, model, is_simulator).

If values can't be determined, they are set to values provided as
parameters.
Úiosr   N)r4   rj   Ú_ios_supportÚget_platform_iosr÷   )rq   rr   rø   rù   rü   r   s         r"   Úios_verrþ   ý  s?   € ô ‡|�|�uÓÛØ×.Ñ.Ó0ˆØÑÜ! 6Ð*Ð*ä˜&¨5Ó?Ð?rº   c                 ód   • SSK Jn   UR                  U 5      nUc  U$ U$ ! [         a    Us $ f = f)zEThis private helper is deprecated in 3.13 and will be removed in 3.15r   )ÚSystem)Ú	java.langr   ÚgetPropertyr2   )ÚnameÚdefaultr   Úvalues       r"   Ú_java_getpropr    s=   € å ðØ×"Ñ" 4Ó(ˆØ‰=ØˆNØˆøÜó ØŠðús   ˆ  ž   /®/c                 óH  • SSK nUR                  SSS9   SSKn[	        SU5      n[	        SU 5      n Uu  pgn[	        SU5      n[	        S	U5      n[	        S
U5      nXgU4nUu  pšn[	        SU5      n[	        SU	5      n	[	        SU
5      n
XšU4nXX#4$ ! [         a    XX#4s $ f = f)a0  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 '').

r   NÚjava_ver)rT   é   )Úremovezjava.vendorzjava.versionzjava.vm.namezjava.vm.vendorzjava.vm.versionzjava.os.archzjava.os.namezjava.os.version)ÚwarningsÚ_deprecatedr  rÃ   r  )rr   ÚvendorÚvminfoÚosinfor  ÚjavaÚvm_nameÚ
vm_releaseÚ	vm_vendorÚos_nameÚ
os_versionÚos_archs               r"   r  r    sÖ   € ó Ø×Ñ˜¨GÐÑ4ð/Ûô ˜=¨&Ó1€FÜ˜N¨GÓ4€GØ%+Ñ"€G˜Ü˜N¨GÓ4€GÜÐ.°	Ó:€IÜÐ0°*Ó=€JØ )Ð+€FØ#)Ñ €G˜Ü˜N¨GÓ4€GÜ˜N¨GÓ4€GÜÐ0°*Ó=€JØ 'Ð)€Fà˜FÐ*Ð*øô! ó /Ø Ð.Ò.ð/ús   –B ÂB!Â B!Ú
AndroidVerz7release api_level manufacturer model device is_emulatorc                 óD  ^	^
• [         R                  S:X  an   SSKJnJnJm	  [        U" S5      S5      m
Xw4T
l        U	U
4S jnU" SU 5      n [        U" SU5      5      nU" S	U5      nU" S
U5      nU" SU5      nU" SS5      S:H  n[        XX#XE5      $ ! [         a     Nf = f)NÚandroidr   )ÚCDLLÚc_char_pÚcreate_string_bufferzlibc.soÚ__system_property_getc                 ó�   >• SnT" U5      nT" U R                  S5      U5      nUS:X  a  U$ UR                  R                  SS5      $ )Né\   zUTF-8r   Úbackslashreplace)Úencoder  r?   )r  r  ÚPROP_VALUE_MAXÚbufferÚlengthr  Úsystem_property_gets        €€r"   ÚgetpropÚandroid_ver.<locals>.getpropM  sM   ø€ à!#�Ù-¨nÓ=�Ù,¨T¯[©[¸Ó-AÀ6ÓJ�Ø˜Q“;ð #�Nà!Ÿ<™<×.Ñ.¨wÐ8JÓKÐKrº   zro.build.version.releasezro.build.version.sdkzro.product.manufacturerzro.product.modelzro.product.devicezro.kernel.qemurÌ   Ú1)r4   rj   Úctypesr  r  r  rÒ   Úargtypesr   rÃ   r  )rr   Ú	api_levelÚmanufacturerrø   ÚdeviceÚis_emulatorr  r  r&  r  r%  s            @@r"   Úandroid_verr/  ?  sÅ   ù€ ä
‡|�|�yÓ ð	@ßCÑCô #*©$¨y«/Ð;RÓ"SÐØ,4Ð+?ÐÔ(ö
Lñ Ð8¸'ÓBˆGÜ™GÐ$:¸IÓFÓGˆIÙ"Ð#<¸lÓKˆLÙÐ.°Ó6ˆEÙÐ0°&Ó9ˆFÙ!Ð"2°CÓ8¸CÑ?ˆKäØ˜L°óFð Føô9 ó 	Ùð	ús   ˜
B Â
BÂBc                 ó  • U S:X  aa  US:  a  XU4$ UR                  S5      nU(       a3   [        US   5      nUS-
  n[        U5      US'   SR                  U5      nUS:  a  Sn OSn OU S;   a  S	n XU4$ ! [         a     N$f = f)
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.

ÚSunOSÚ5rS   r   rT   Ú6ÚSolaris©r_   r`   ÚWindows)r   r   rX   rY   r   )rq   rr   r   r[   rÛ   s        r"   Úsystem_aliasr7  f  s¨   € ð �Óà�S‹=à GÐ+Ð+à�M‰M˜#ÓˆÞð&Ü˜A˜a™D›	�ð  ™	�Ü˜5“z��!‘ØŸ(™( 1›+�Ø�S‹=Ø‰Fð ‰Fà	Ð%Ó	%àˆð
 ˜GÐ#Ð#øô' ó Ùðús   ªA4 Á4
BÂ Bc                  ó  • SR                  S [        [        U 5       5       5      nUR                  SS5      nUR                  SS5      nUR                  SS5      nUR                  SS5      nUR                  SS5      nUR                  S	S5      nUR                  S
S5      nUR                  SS5      nUR                  SS5      n UR                  SS5      nX!:X  a  OUnM  U(       a   US   S:X  a  USS nU(       a  US   S:X  a  M  U$ )zdHelper to format the platform string in a filename
compatible format e.g. "system-version-machine".
Ú-c              3   ó@   #   • U  H  oR                  5       v •  M     g 7frˆ   )ro   )rƒ   Úxs     r"   r…   Ú_platform.<locals>.<genexpr>–  s   é € Ð=Ò+< aŸ™Ÿ	˜	Ò+<ùs   ‚Ú Ú_Ú/Ú\Ú:Ú;Ú"Ú(Ú)Úunknownr$   z--ri   N)rY   Úfilterr0   Úreplace)Úargsrj   Úcleaneds      r"   Ú	_platformrK  �  s!  € ð �x‰xÑ=¬6´#°tÔ+<Ó=Ó=€Hð ×Ñ  SÓ)€HØ×Ñ  SÓ)€HØ×Ñ  cÓ*€HØ×Ñ  SÓ)€HØ×Ñ  SÓ)€HØ×Ñ  SÓ)€HØ×Ñ  SÓ)€HØ×Ñ  SÓ)€Hð ×Ñ 	¨2Ó.€Hð Ø×"Ñ" 4¨Ó-ˆØÓØØˆñ	 ö
 �x ‘| sÓ*Ø˜C˜R�=ˆö �x ‘| sÕ*ð €Orº   c                 óv   •  SSK n UR                  5       $ ! [         a    U s $ f = f! [         a    U s $ f = f)z7Helper to determine the node name of this machine.
    r   N)ÚsocketrÃ   Úgethostnamer3   )r  rM  s     r"   Ú_noderO  °  sI   € ðÛðØ×!Ñ!Ó#Ð#øô	 ó àŠðûô
 ó àŠðús   ‚ ‡) —&¥&©8·8c                 ó´  • [         R                  R                  U 5      n [         R                  R                  U 5      (       a”  [         R                  R	                  [         R                  R                  [         R                  R                  U 5      [         R                  " U 5      5      5      n [         R                  R                  U 5      (       a  M”  U $ )zGIn case filepath is a symlink, follow it until a
real file is reached.
)r.   r7   ÚabspathÚislinkÚnormpathrY   ÚdirnameÚreadlink)Úfilepaths    r"   Ú_follow_symlinksrW  ¿  s‚   € ô
 �w‰w�‰˜xÓ(€HÜ
�'‰'�.‰.˜×
"Ñ
"Ü—7‘7×#Ñ#Ü�G‰G�L‰LœŸ™Ÿ™¨Ó2´B·K²KÀÓ4IÓJóLˆô �'‰'�.‰.˜×
"Ó
"ð €Orº   c                 óP  • [         R                  S;   a  U$  SSKn[	        U 5      n [        [        R                  SS9n UR                  SSU /UR                  US9nU(       d  U$ UR                  S	5      $ ! [         a    Us $ f = f! [        UR                  4 a    Us $ f = f)
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.

>   ra   rû   Útvosr`   r_   Úwatchosr   NÚC)ÚLC_ALLÚfilez-b)re   Úenvzlatin-1)r4   rj   rk   rÃ   rW  Údictr.   Úenvironrl   rm   r3   rn   r?   )Útargetr  rk   r^  Úoutputs        r"   Ú_syscmd_filerc  Ë  s¼   € ô ‡|�|ÐJÓJàˆðÛô ˜fÓ%€Fô Œr�z‰z #Ñ
&€Cðà×(Ñ(¨&°$¸Ð)?Ø0:×0BÑ0BØ-0ð )ð 2ˆö
 Øˆð �=‰=˜Ó#Ð#øô# ó ØŠðûô �Z×2Ñ2Ð3ó ØŠðús#   ˜A8 Á B
 Á8BÂBÂ
B%Â$B%)r$   Ú	WindowsPE)r$   r6  )r$   ÚMSDOSc                 ó  • U(       d&  SSK nUR                  S5      n[        US-  5      S-   nU (       a  [        U S5      nOSnU(       dZ  U [        R
                  :X  aF  [        R                  [        ;   a+  [        [        R                     u  pgU(       a  UnU(       a  UnX4$ SU;  a	  SU;  a  X4$ S	U;   a  S
nOSU;   a  SnSU;   a  SnX4$ SU;   a  SnX4$ SU;   a  SU;   a  SnX4$ Sn X4$ SU;   a  SnX4$ SU;   a  SnX4$  X4$ )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.

r   NÚPé   Úbitr$   r5   zshared objectz32-bitÚ32bitz64-bitÚ64bitÚELFzMach-OÚPEr6  rd  ÚCOFFzMS-DOSre  )ÚstructÚcalcsizerX   rc  r4   r5   rj   Ú_default_architecture)r5   ÚbitsÚlinkagero  ÚsizeÚfileoutr   r[   s           r"   Úarchitecturerv  ÷  s[  € ö. ÛØ�‰˜sÓ#ˆÜ�4˜!‘8‹}˜uÑ$ˆö Ü˜z¨2Ó.‰àˆæØ”S—^‘^Ó#ô �<‰<Ô0Ó0Ü(¬¯©Ñ6‰DˆAÞØ�ÞØ�Øˆ}Ðà˜7Ó" ¸gÓ'Eàˆ}Ðð �7ÓØ‰Ø	�WÓ	Øˆð �ÓØˆð" ˆ=Ðð! 
�WÓ	Øˆð ˆ=Ðð 
�‹à˜ÓØ!ˆGð ˆ=Ðð ‰Gð ˆ=Ðð 
�7Ó	Øˆð ˆ=Ðð 
�WÓ	Øˆð
 ˆ=Ðð 	àˆ=Ðrº   c                  ó.  •  [        SS5      tp / SQ[        U 5         n U (       a  U $  [
        R                  R                  SS5      =(       d     [
        R                  R                  SS5      $ ! [        [        4 a     NYf = f! [         a     Nif = f)Nr}   ÚArchitecture)Úx86ÚMIPSÚAlpharì   NÚARMÚia64NNÚAMD64NNÚARM64ÚPROCESSOR_ARCHITEW6432r$   ÚPROCESSOR_ARCHITECTURE)r“   r   r   Ú
IndexErrorr3   r.   r`  r   )Úarchr>  s     r"   Ú_get_machine_win32r„  E  sœ   € ðÜ  ~Ó6ˆ
ˆð		òô �$‹iñˆDö Ø�ð ô 	�
‰
�‰Ð/°Ó4÷ 	5Ü
�
‰
�‰Ð/°Ó4ðøô œJÐ'ó 	Ùð	ûô ó Ùðús"   ‚B �A1 Á1BÂBÂ
BÂBc                   ó<   • \ rS rSr\S 5       rS rS rS rS r	Sr
g)	Ú
_Processoria  c                 ór   • [        U S[        R                   3U R                  5      nU" 5       =(       d    S$ )NÚget_r$   )rÒ   r4   rj   Úfrom_subprocess)ÚclsÚfuncs     r"   r   Ú_Processor.getb  s-   € ä�s˜d¤3§<¡< .Ð1°3×3FÑ3FÓGˆÙ‹v�|˜Ðrº   c                  ó    •  [        SSS5      u  pU SU  3$ ! [         a+    [        R                  R	                  S[        5       5      s $ f = f)Nr}   ÚManufacturerÚCaptionú, ÚPROCESSOR_IDENTIFIER)r“   r3   r.   r`  r   r„  )r,  Úcaptions     r"   Ú	get_win32Ú_Processor.get_win32g  sX   € ð	0Ü$.¨u°nÀiÓ$PÑ!ˆLð �Y˜b  Ð/Ð/øô ó 	PÜ—:‘:—>‘>Ð"8Ô:LÓ:NÓOÒOð	Pús   ‚ ˜2AÁAc                  óh   •  SS K n U R                  SS5      u  pUS:¼  a  S$ S$ ! [         a     g f = f)Nr   zSYI$_CPUé€   r{  ÚVAX)Úvms_libÚgetsyirÃ   )r˜  ÚcsidÚ
cpu_numbers      r"   Úget_OpenVMSÚ_Processor.get_OpenVMSo  sE   € ð	;Ûð  'Ÿ~™~¨j¸!Ó<ÑˆDØ(¨CÓ/�7Ð:°UÐ:øô	 ó 	Ùð	ús   ‚$ ¤
1°1c                  óž   • [         R                  R                  R                  S5      (       a  [        R
                  " 5       R                  $ g)NÚ	simulatorÚarm64)r4   ÚimplementationÚ
_multiarchÚendswithr.   rð   rñ   r‰   rº   r"   Úget_iosÚ_Processor.get_ios{  s4   € Ü×Ñ×(Ñ(×1Ñ1°+×>Ñ>Ü—8’8“:×%Ñ%Ð%Ørº   c                  ó¾   •  SSK n  U R                  SS/U R                  SSS9R	                  5       $ ! [         a     gf = f! [
        U R                  4 a     gf = f)z
Fall back to `uname -p`
r   Nrð   z-pTÚutf8)re   rf   rg   )rk   rÃ   rl   rm   ro   r3   rn   )rk   s    r"   r‰  Ú_Processor.from_subprocess€  sx   € ð	Ûð	Ø×*Ñ*Ø˜$�Ø!×)Ñ)ØØð	 +ð ÷
 ‰e‹gðøô ó 	Ùð	ûô ˜×6Ñ6Ð7ó 	Ùð	ús   ‚3 ‡+A ³
A ¿A ÁAÁAr‰   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Úclassmethodr   r“  rœ  r¤  r‰  Ú__static_attributes__r‰   rº   r"   r†  r†  a  s(   † Øñó ðò0ò;òõ
rº   r†  c                 ó   • U S:X  a  S$ U $ )NrF  r$   r‰   )Úvals    r"   Ú_unknown_as_blankr±  “  s   € Ø˜	Ó!ˆ2Ð* sÐ*rº   c                   óv   ^ • \ rS rSrSrSr\R                  S 5       rU 4S jr	\
S 5       rS rS rS	 rS
rU =r$ )Úuname_resulti™  z¤
A uname_result that's largely compatible with a
simple namedtuple except that 'processor' is
resolved late and cached to avoid calling "uname"
except when needed.
)rq   Únoderr   r   rñ   Ú	processorc                 ó<   • [        [        R                  5       5      $ rˆ   )r±  r†  r   ©Úselfs    r"   rµ  Úuname_result.processor§  s   € ä ¤§¡Ó!1Ó2Ð2rº   c                 ó`   >• [         R                  " [        TU ]  5       U R                  45      $ rˆ   )Ú	itertoolsÚchainÚsuperÚ__iter__rµ  )r¸  Ú	__class__s    €r"   r¾  Úuname_result.__iter__«  s)   ø€ Ü�ŠÜ‰GÑÓØ�^‰^Ðó
ð 	
rº   c                 ó¸   • [        U R                  5      S-
  nU R                  " U /UQ76 n[        U5      US-   :w  a  SU S[        U5       3n[        U5      eU$ )Nr'   z	Expected z arguments, got )r0   Ú_fieldsÚ__new__Ú	TypeError)rŠ  ÚiterableÚ
num_fieldsr   Úmsgs        r"   Ú_makeÚuname_result._make±  s`   € ô ˜Ÿ™Ó%¨Ñ)ˆ
Ø—’˜SÐ, 8Ò,ˆÜˆv‹;˜* q™.Ó(Ø˜j˜\Ð)9¼#¸f»+¸ÐGˆCÜ˜C“.Ð Øˆrº   c                 ó   • [        U 5      U   $ rˆ   )r1   )r¸  rÅ   s     r"   Ú__getitem__Úuname_result.__getitem__»  s   € Ü�T‹{˜3ÑÐrº   c                 ó<   • [        [        [        U 5      5      5      $ rˆ   )r0   r1   Úiterr·  s    r"   Ú__len__Úuname_result.__len__¾  s   € Ü”5œ˜d›Ó$Ó%Ð%rº   c                 óV   • [         [        U 5      S [        U R                  5      S-
   4$ )Nr'   )r³  r1   r0   rÂ  r·  s    r"   Ú
__reduce__Úuname_result.__reduce__Á  s'   € ÜœU 4›[Ð)?¬#¨d¯l©lÓ*;¸aÑ*?Ð@Ð@Ð@rº   r‰   )r©  rª  r«  r¬  Ú__doc__rÂ  Ú	functoolsÚcached_propertyrµ  r¾  r­  rÈ  rË  rÏ  rÒ  r®  Ú__classcell__)r¿  s   @r"   r³  r³  ™  sW   ø† ñ
ð O€Gà×Ññ3ó ð3õ
ð ñó ðò ò&÷Að Arº   r³  Úuname_result_basez#system node release version machinec                  óf  • [         b  [         $  [        R                  " 5       =u  pp#pE[        U5      (       d´  U S:X  a   [        5       u  p#pgU=(       d
    [        5       nU(       a  U(       d3  [        U 5      u  pnU S:X  a  Sn OU S:X  a  US:X  a  Sn SUSS	 :X  a  S
nOSnU S;   a  U(       d  U S:X  a  SnOSnSn O2U SS S:X  a)  [        5       u  p(pšSn SR                  U	5      nU(       d  UnU S:X  a  U(       a  US:X  a  UnSnU S:X  a
  US:X  a  Sn S
n[        R
                  S:X  a  Sn [        5       R                  n[        R
                  S:X  a  [        5       u  p  nXX#U4n[!        [#        [$        U5      6 q [         $ ! [         a%    [        R
                  n [        5       nS=n=p4Sn GN†f = f)aA  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$   r‰   r_   zMicrosoft Windowsr6  Ú	Microsoftz6.0rT   r¡   r5  rj  Ú16bitr™   r  ÚJavar�  ÚOpenVMSrÌ   r  ÚAndroidrû   )Ú_uname_cacher.   rð   r2   r4   rj   rO  Úanyrç   r„  rx   r  rY   r/  rr   rþ   r³  rW   r±  )rq   r´  rr   r   rñ   ÚinfosrÕ   rÖ   r  r  r  r>  Úvalss                r"   rð   rð   È  sÓ  € ô ÑÜÐðÜ:<¿(º(»*ÐDÑ/ˆ�g¨ô ˆu�:‰:ð �WÓÜ+4«;Ñ(ˆG˜cØ×5Ô!3Ó!5ˆGö žGÜ'2°6Ó':Ñ$ˆF˜Wð Ð,Ó,Ø"‘Ø˜;Ó&¨7°iÓ+?ð
 #�Ø˜G B Q˜KÓ'Ø%‘Gà �Gð Ð'Ó'ÞØ˜WÓ$Ø%‘Gà%�GØ‰Fà�B�QˆZ˜6Ó!Ü.6«jÑ+ˆG˜VØˆFØ—i‘i Ó'ˆGÞØ �ð �Óæ˜' S›.ØˆGØˆGð �Ó ¨IÓ!5ØˆØˆô ‡|�|�yÓ ØˆÜ“-×'Ñ'ˆô ‡|�|�uÓÜ '£	Ñˆ˜˜Aà˜¨7Ð2€Dä¤Ô%6¸Ó!=Ð>€LÜÐøôU ó Ü—‘ˆÜ‹wˆØ&(Ð(ˆÐ(�'Ø‹ð	ús   �F Æ+F0Æ/F0c                  ó*   • [        5       R                  $ )z€Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'.

An empty string is returned if the value cannot be determined.

)rð   rq   r‰   rº   r"   rq   rq   *  s   € ô ‹7�>‰>Ðrº   c                  ó*   • [        5       R                  $ )zˆReturns the computer's network name (which may not be fully
qualified)

An empty string is returned if the value cannot be determined.

)rð   r´  r‰   rº   r"   r´  r´  3  s   € ô ‹7�<‰<Ðrº   c                  ó*   • [        5       R                  $ )ztReturns the system's release, e.g. '2.2.0' or 'NT'

An empty string is returned if the value cannot be determined.

)rð   rr   r‰   rº   r"   rr   rr   =  ó   € ô ‹7�?‰?Ðrº   c                  ó*   • [        5       R                  $ )zzReturns the system's release version, e.g. '#3 on degas'

An empty string is returned if the value cannot be determined.

)rð   r   r‰   rº   r"   r   r   F  ræ  rº   c                  ó*   • [        5       R                  $ )zgReturns the machine type, e.g. 'i386'

An empty string is returned if the value cannot be determined.

)rð   rñ   r‰   rº   r"   rñ   rñ   O  ræ  rº   c                  ó*   • [        5       R                  $ )zô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.

)rð   rµ  r‰   rº   r"   rµ  rµ  X  s   € ô ‹7×ÑÐrº   c                 ó¤  • U c  [         R                  n [        R                  U S5      nUb  U$ [         R                  R                  S5      (       a|  [        R                  " S[        R                  5      nSnUR                  U 5      nUc  [        S[        U 5      -  5      eUR                  5       u  pVpxn	Uc  Sn[         R                  n
OÚSU ;   aY  [        R                  " S5      nSnUR                  U 5      nUc  [        S	[        U 5      -  5      eUR                  5       u  pVpxSn
O{[        R                  " S
[        R                  5      nUR                  U 5      nUc  [        S[        U 5      -  5      eUR                  5       u  pVpxn
SnUc  SnOU(       a  US-   U-   n[        [         S5      (       a  [         R                  u  p�nO-[        [         S5      (       a  [         R                  u  p�nOSnSnUR!                  S5      n[#        U5      S:X  a"  UR%                  S5        SR'                  U5      nX5XÞXgU
4nU[        U '   U$ )av  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.

Nr  zL([\w.+]+)\s*\(#?([^,]+)(?:,\s*([\w ]*)(?:,\s*([\w :]*))?)?\)\s*\[([^\]]+)\]?ÚJythonz&failed to parse Jython sys.version: %sr$   ÚPyPyzE([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[PyPy [^\]]+\]?z$failed to parse PyPy sys.version: %szu([\w.+]+)\s*(?:experimental free-threading build\s+)?\(#?([^,]+)(?:,\s*([\w ]*)(?:,\s*([\w :]*))?)?\)\s*\[([^\]]+)\]?z'failed to parse CPython sys.version: %sÚCPythonr=  Ú_gitÚ
_mercurialrS   r)   rÌ   )r4   r   Ú_sys_version_cacher   rj   Ú
startswithr   r   r6   rp   r   Úreprr>   Úhasattrrî  rï  r   r0   rU   rY   )Úsys_versionr   Újython_sys_version_parserr  rp   r   ÚbuildnoÚ	builddateÚ	buildtimer>  ÚcompilerÚpypy_sys_version_parserÚcpython_sys_version_parserÚbranchÚrevisionr[   s                   r"   Ú_sys_versionrþ  h  sL  € ð* ÑÜ—k‘kˆô  ×#Ñ# K°Ó6€FØÑØˆä
‡|�|×Ñ˜v×&Ñ&ä$&§J¢Jðô !Ÿh™hó%(Ð!ð ˆØ)×/Ñ/°Ó<ˆØ‰=ÜØ8Ü�[Ó!ñ"ó#ð #ð 5:·L±L³NÑ1ˆ˜)°ØÑØˆIÜ—<‘<‰à	�;Ó	ä"$§*¢*ð ó#!Ðð
 ˆØ'×-Ñ-¨kÓ:ˆØ‰=ÜÐCÜ! +Ó.ñ/ó 0ð 0à16·±³Ñ.ˆ˜)Ø‰ô &(§Z¢Zðô
 !Ÿh™hó&(Ð"ð +×0Ñ0°Ó=ˆØ‰=ÜØ9Ü�[Ó!ñ"ó#ð #ð �l‰l‹nñ 	9ˆ˜)°àˆØÑØ‰IÞØ! C™¨)Ñ3ˆIäŒs�F×ÑÜ!Ÿh™hÑˆ‘8Ü	”�l×	#Ñ	#Ü!Ÿn™nÑˆ‘8àˆØˆð 	�‰�cÓ€AÜ
ˆ1ƒv�ƒ{Ø	�‰�ŒØ—(‘(˜1“+ˆð ˜V¨wÀ8ÐL€FØ&,Ô�{Ñ#Ø€Mrº   c                  ó   • [        5       S   $ )zõReturns a string identifying the Python implementation.

Currently, the following implementations are identified:
  'CPython' (C implementation of Python),
  'Jython' (Java implementation of Python),
  'PyPy' (Python implementation of Python).

r   ©rþ  r‰   rº   r"   Úpython_implementationr  Ð  s   € ô ‹>˜!ÑÐrº   c                  ó   • [        5       S   $ )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'   r   r‰   rº   r"   Úpython_versionr  Ü  s   € ô ‹>˜!ÑÐrº   c                  óL   • [        [        5       S   R                  S5      5      $ )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'   rS   )r1   rþ  r   r‰   rº   r"   Úpython_version_tupler  æ  s!   € ô ”“ Ñ"×(Ñ(¨Ó-Ó.Ð.rº   c                  ó   • [        5       S   $ )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)   r   r‰   rº   r"   Úpython_branchr  ñ  s   € ô ‹>˜!ÑÐrº   c                  ó   • [        5       S   $ )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.

rT   r   r‰   rº   r"   Úpython_revisionr	  ÿ  s   € ô ‹>˜!ÑÐrº   c                  ó   • [        5       SS $ )z[Returns a tuple (buildno, builddate) stating the Python
build number and date as strings.

r™   r˜   r   r‰   rº   r"   Úpython_buildr    s   € ô ‹>˜!˜AÐÐrº   c                  ó   • [        5       S   $ )zFReturns a string identifying the compiler used for compiling
Python.

r˜   r   r‰   rº   r"   Úpython_compilerr    s   € ô ‹>˜!ÑÐrº   c           	      óâ  • [         R                  X4S5      nUb  U$ [        5       u  p4pVpxXx:X  a  SnU (       a  [        X5U5      u  p5nUS:X  a;  [        R
                  S:X  a  [        5       u  p5  n	O[        5       S   n
U
(       a  SnU
nUS:X  a.  [        U5      u  p¼pÞU(       a  [        X55      nOµ[        X5Xm5      nO¨US:X  a  [        5       u  nn[        X5XxS	UU-   5      nOƒUS
:X  a?  [        5       u  nnnu  nnnU(       d  U(       d  [        X5U5      nOO[        X5USUUU5      nO>U(       a  [        X55      nO+[        [        R                  5      u  nn[        X5UUUU5      nU[         X4'   U$ )an  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$   ÚDarwinrû   r   ÚmacOSr6  ÚLinuxÚwithrÜ  Úon)Ú_platform_cacher   rð   r7  r4   rj   rþ   rö   rç   rK  rQ   r  rv  r5   )ÚaliasedÚterser   rq   r´  rr   r   rñ   rµ  r>  Úmacos_releaseÚrelÚversrÕ   rÖ   rj   ÚlibcnameÚlibcversionrà   r    r  r  r  r  rr  rs  s                             r"   rj   rj      s~  € ô& × Ñ  'Ð!1°4Ó8€FØÑØˆô :?»Ñ6€F�' GØÓØˆ	ÞÜ#/°ÀÓ#IÑ ˆ˜à�Óä�<‰<˜5Ó Ü$+£IÑ!ˆF˜Q¡ä#›I a™LˆMÞØ �Ø'�à�Óä )¨'Ó 2Ñˆ�3ÞÜ  Ó1‰Hä  °'Ó?‰Hà	�7Ó	ä (£
Ñˆ�+Ü˜V¨gØ#Ø% kÑ1ó3‰ð 
�6Ó	ä7?³zÑ4ˆˆ1ˆfÑ4�w 
¨GÞžÜ  °'Ó:‰Hä  °'Ø!%Ø!(¨*°gó?‰Hö Ü  Ó1‰Hä(¬¯©Ó8‰MˆD�'Ü  °'Ø!*¨D°'ó;ˆHð )1„O�WÐ$Ñ%Ø€Orº   )z/etc/os-releasez/usr/lib/os-releasec                 ó  • SSSS.n[         R                  " S5      n[         R                  " S5      nU  HK  nUR                  U5      nUc  M  UR                  SUR	                  S5      5      XR	                  S5      '   MM     U$ )	Nr  Úlinux)ÚNAMEÚIDÚPRETTY_NAMEzA^(?P<name>[a-zA-Z0-9_]+)=(?P<quote>["']?)(?P<value>.*)(?P=quote)$z\\([\\\$\"\'`])z\1r  r  )r   r   rp   ÚsubÚgroup)Úlinesru   Úos_release_lineÚos_release_unescapeÚlineÚmos         r"   Ú_parse_os_releaser(  u  s‰   € ð ØØñ€Dô —j’jØMó€Oô Ÿ*š*Ð%7Ó8ÐãˆØ×"Ñ" 4Ó(ˆØ‹>Ø%8×%<Ñ%<Ø�r—x‘x Ó(ó&ˆD—‘˜&Ó!Ó"ñ ð €Krº   c                  óh  • [         cc  Sn [         H5  n [        USS9 n[        U5      q SSS5          [         R                  5       $    [	        U SSR                  [        5       35      e[         R                  5       $ ! , (       d  f       N[= f! [         a  nUR
                  n  SnAMœ  SnAff = f)zKReturn operation system identification from freedesktop.org os-release
    Nzutf-8)rg   zUnable to read files r�  )Ú_os_release_cacheÚ_os_release_candidatesr9   r(  r3   ÚerrnorY   Úcopy)r,  Ú	candidaterF   Úes       r"   Úfreedesktop_os_releaser0  �  s©   € ô
 Ñ Øˆß/ˆIð Ü˜)¨gÒ6¸!Ü(9¸!Ó(<Ð%÷ 7àô ×!Ñ!Ó#Ð#ñ 0ô ØØ'¨¯	©	Ô2HÓ(IÐ'JÐKóð ô
 ×!Ñ!Ó#Ð#÷ 7Õ6ûô ó  ØŸ™–ûð ús-   ”
BžA?ªBÁ?
B	Â	BÂ
B1ÂB,Â,B1Ú__main__r  z--terseÚ
nonaliasedz--nonaliased)Nr$   r$   i @  )r$   )r$   r$   r$   r^   )r$   r$   r$   r$   )r$   rê   r$   )r$   r$   r$   F)r$   r$   rê   rê   )r$   r   r$   r$   r$   Frˆ   )FF)IrÔ  Ú__copyright__Ú__version__Úcollectionsr.   r   r4   rÕ  r»  rŒ   rÃ   r   r#   rQ   r]   rx   r“   rã   rä   r»   r¹   rÝ   rç   rô   rö   Ú
namedtupler÷   rþ   r  r  r  r/  r7  rK  rO  rW  rc  rq  r5   rv  r„  r†  r±  r³  rß  rð   rq   r´  rr   r   rñ   rµ  rð  rþ  r  r  r  r  r	  r  r  r  rj   r+  r*  r(  r0  r©  Úargvr  r  ÚprintÚexitr‰   rº   r"   Ú<module>r:     ss  ðñðt€ð* €ã Û 	Û 	Û 
Û Û ðÛð Ø�bØ�RØ	Ø
�Bà
�Cñ	€òô Nô`ð2 02à#<ô4$òn(ò*Ð òÐ ò[òò9*ôv
(ò)ô,)ð* ×'Ò'ØÚ2ó€ô@ò 	ô!+ðH ×#Ò#ØÐKóM€
ð LNØ!ô"FòN&$òTô@ò	ô $ðN ØØñÐ ð  ŸN™N°¸Rô Kò\÷8/ñ /òd+ô)AØ×ÒØØ-ó/ô)AðX €ò^òDòòòòò
ð Ð ôfòP
òò	/òòòòð €ôKðb DÐ ØÐ òò6$ð2 ˆzÓà˜Ÿ™Ñ ×9 I°·±Ñ$9€EØ 3§8¡8Ñ+×N°NÀcÇhÁhÑ4N€GÙ	‰(�7˜EÓ
"Ô#Ø‡H‚HˆQ…Kð øð[) ó ØƒDðús    F0 Æ0F<Æ;F<