OwlCyberSecurity - MANAGER
Edit File: platform.cpython-313.pyc
� ����u�h�������������������������~����S�r�SrSrSSKrSSKrSSKrSSKrSSKrSSKr�SSK q SSSSSSS S S S S. rS�rSLS�jr SMS�jr��SNS�jrS�r/�SQr/�SQrS�rS�rS�rSOS�jrS�rSPS�jr\R2������������������"�S/�SQ5������rSQS�jrS�rSRS�jr\R2������������������"�S S!5������r��SSS"�jrS#�r S$�r!SMS%�jr"S&�r#SMS'�jr$S(S)S*S.r%\RL������������������S S 4S+�jr'S,�r(�"�S-�S.5������r)S/�r*�"�S0�S1\R2������������������"�S2S35������5������r+Sq,S4�r-S5�r.S6�r/S7�r0S8�r1S9�r2S:�r30�r4STS;�jr5S<�r6S=�r7S>�r8S?�r9S@�r:SA�r;SB�r<0�r=SUSC�jr>SDr?Sq@SE�rASF�rB\CSG:X��al��SH\R�������������������;���=(�������d�� �SI\R�������������������;���rESJ\R�������������������;��=(�������a�� �SK\R�������������������;��rF\G"�\>"�\F\E5������5������ �\R�������������������"�S5������ �gg!�\ �a�� �Sq �GN�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 ! z1.0.8�����N� ������������(����2��������) �dev�alpha�a�beta�b�c�RC�rc�pl�pc����������������������[���������R������������������"�S5������n/�nUR������������������U�5�������H,��nUS;��d��M���[��������US5������nSnUR������������������XC45������ �M.��� �U$�!�[���������a�� �[ ��������R ������������������US5������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��� �//opt/alt/python313/lib64/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������������������"�S5������nUR������������������SS9n[��������U5������S:X��a��[ ��������U5������$��[��������R������������������n�U�(�������d��X4$�[��������R������������������"�S[��������R������������������5������n[��������n[���������R������������������R������������������U�5������n�[!��������U�S5�������nUR#������������������U5������n Sn U [��������U 5������:��Gak��SU ;���d��S U ;���a��UR%������������������X�5������nOS nU(�������a��UR'������������������5�������[��������U 5������:X��aB��UR#������������������U5������nU(�������a"��U [)��������U [��������U 5������S- ��5������S �U-���n Sn M���U(�������d��O�UR+������������������5��������V s/�s�H��n U b��U R-������������������S5������OU PM��� �sn u��p�nnnnU(�������a ��U(�������d��S nOwU(�������a ��US:w��a��SnUnOeU"�U5������U"�U5������:���a��UnOPU(�������aI��US:w��aC��S nU(�������a��U(�������a��U"�U5������U"�U5������:���a��UnU(�������a��U[��������U5������*�S �U:w��a��UU-���nUR'������������������5�������n U [��������U 5������:��a��GMk��S S S 5������ �X4$�!�[ ��������[��������[��������4�a�� ��GN"f�=�fs �sn f�!�,�(�������d��f �� � �X4$�=�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��DF�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�� �� ��JE%�!� � �F��<��s1����>I��9B<I4�5 I/�B0I4�I,�+I,�/I4�4 Jc����������� �������������U�R������������������S5������nU(�������a��UR������������������U5������ ��[��������[��������[��������[��������[ ��������U5������5������5������nSR������������������USS�5������n�U�$�!�[���������a�� �Un�N$f�=�f)zNormalize 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�6A7��win32�win16�dosc����������� ������������[���������R������������������U;��a��XU4$�SSKnS�H,��n�UR������������������UUR������������������UR������������������SSSS9n �O� �XU4$�[��������R������������������"�S5������nUR������������������5�������nUR������������������U5������n U b:��U R������������������5�������u��pnUS���S :X��a��USS�nUS���S :X��a��USS�n[��������U5������nXU4$�!�[ ��������UR������������������4�a��n�SnAM���SnAff�=�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���zcommand /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��[��������S5������eSSS.U����n��[���������R������������������"�SR������������������SR ������������������U5������U�5������5������R������������������S5������nS�U�5�������nU�Vs0�s�H��oDS ���US ���_M ��� �snmU4S�jU�5�������$�!�[���������a�� �S�q�[��������S5������ef�=�fs �snf�)Nz not supported�Win32_OperatingSystem�Win32_Processor)�OS�CPUzSELECT {} FROM {}�,��c��������������3����B���#� ���U��H��oR������������������S�5������v�� �M��� �g7f)�=N)� partition)�.0�is��� r"���� <genexpr>�_wmi_query.<locals>.<genexpr>Q��s��������1�D�q�+�+�c�"�"�D�s����r���r)���c��������������3����.���>#� ���U��H ��nTU���v�� �M��� �g�7f�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����AB��2B.�B+))�r���r'���r����post11))r���r���i�U���11)���������r����10)�r����rT���r���z8.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��������������������������SS�K�n��SnU�R������������������U�R������������������U5�������nU�R������������������US5������S���sS�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�1A2c������������������j�����[��������SSSSSS5������u��pp$n[��������U5������S:H��nU(�������a��US:w��a ��S U�S U�3nOS U�3nXX&4$�!�[���������a�� ��Of�=�f�SSKJn �O!�[ ���������a�� �XUS 4s�$�f�=�fU"�5�������n[ ��������USS5������S:H��n�[��������5�������S���n�[��������[��������U�R������������������S 5������5������u��p�nO=!�[���������a0�� �UR������������������=(�������d�� �US�S�u��p�nSR������������������X�U5������n��Of�=�fUS�S�X�4:X��a>���SR������������������UR������������������5������nO!!�[���������a�� �US�S�S:X��a��S USS��-���n�Of�=�f�SS�Kn�Sn UR!������������������UR"������������������U 5�������nUR%������������������US5������S���nS�S�S�5������ �O1!�,�(�������d��f �� � �O#=�f!�[���������a�� ��Of�=�f!�[ ���������a�� ��Of�=�fXX&4$�)Nr|����Version�ProductType� BuildType�ServicePackMajorVersion�ServicePackMinorVersionr'����0�SPrS���r���)�getwindowsversionT�product_typer)���rT���z{0}.{1}.{2}zSP{}� ���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�1C2��D��D:�9D:�>F!��F��!F��7F��� F� F��F�� F�F�! F.�-F.c����������������������^��Sn[��������XU5������u��pp4U(�������aQ��[��������[��������[��������UR ������������������S5������5������5������mU(�������a��[ ��������O[��������n[��������U4S�jU�5�������U�5������n�XX#4$�)NFrS���c��������������3����<���>#� ���U��H��u��pUT::��d��M ��Uv�� �M��� �g�7fr����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����Sn�[���������R������������������R������������������U�5������(�������d��g��SS�Kn[��������U�S5�������nUR ������������������U5������nS�S�S�5������ �WS���nSn[���������R������������������"�5�������R������������������nUS;���a��SnXEU4$�!�[���������a�� ��g�f�=�f!�,�(�������d��f �� � �NP=�f)Nz0/System/Library/CoreServices/SystemVersion.plistr���r*����ProductVersion�r$���r$���r$���)�ppczPower 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�������nUb��U$�XU4$�)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��SSKnUR������������������5�������nUb��[ ��������U6�$�[ ��������XX#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�����SSK�Jn ��UR������������������U�5������nUc��U$�U$�!�[���������a�� �Us�$�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����SSK�nUR������������������SSS9 ��SSKn[ ��������SU5������n[ ��������SU�5������n�Uu��pgn[ ��������SU5������n[ ��������S U5������n[ ��������S U5������nXgU4nUu��p�n[ ��������SU5������n[ ��������SU 5������n [ ��������S U 5������n X�U4nXX#4$�!�[���������a�� �XX#4s�$�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�������)�removezjava.vendorzjava.versionzjava.vm.namezjava.vm.vendorzjava.vm.versionzjava.os.archzjava.os.namezjava.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���SSKJnJnJm �[ ��������U"�S5������S5������m Xw4T l��������U U 4S�jnU"�SU�5������n�[��������U"�SU5������5������nU"�S U5������nU"�S U5������nU"�SU5������nU"�SS 5������S:H��n[��������XX#XE5������$�!�[���������a�� ��Nf�=�f)N�androidr���)�CDLL�c_char_p�create_string_bufferzlibc.so�__system_property_getc���������������������>��SnT"�U5������nT"�U�R������������������S5������U5������nUS:X��a��U$�UR������������������R������������������SS5������$�)N�\���zUTF-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����zro.build.version.releasezro.build.version.sdkzro.product.manufacturerzro.product.modelzro.product.devicezro.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�Bc����������������������U�S:X��aa��US:��a��XU4$�UR������������������S5������nU(�������a3���[��������US���5������nUS- ��n[��������U5������US'���SR������������������U5������nUS:��a��Sn�OSn�OU�S;���a��S n�XU4$�!�[���������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��Bc�����������������������SR������������������S�[��������[��������U�5�������5�������5������nUR������������������SS5������nUR������������������SS5������nUR������������������SS5������nUR������������������SS5������nUR������������������SS5������nUR������������������S S5������nUR������������������S S5������nUR������������������SS5������nUR������������������SS 5������n�UR������������������SS5������nX!:X��a��OUnM��U(�������a ��US���S:X��a��USS�nU(�������a��US���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��oR������������������5�������v�� �M��� �g�7fr����)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������SSK�n�UR������������������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�8c����������������������[���������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$��SSKn[ ��������U�5������n�[��������[��������R������������������SS9n�UR������������������SSU�/UR������������������US9nU(�������d��U$�UR������������������S 5������$�!�[���������a�� �Us�$�f�=�f!�[��������UR������������������4�a�� �Us�$�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����envzlatin-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 ��8B�B� B%�$B%)r$���� WindowsPE)r$���r6��)r$����MSDOSc����������������������U(�������d&��SSK�nUR������������������S5������n[��������US-��5������S-���nU�(�������a ��[��������U�S5������nOSnU(�������dZ��U�[��������R ������������������:X��aF��[��������R������������������[��������;���a+��[��������[��������R���������������������u��pgU(�������a��UnU(�������a��UnX4$�SU;��a ��SU;��a��X4$�S U;���a��S nOSU;���a��SnS U;���a��S nX4$�SU;���a��SnX4$�SU;���a��SU;���a��SnX4$�Sn�X4$�SU;���a��SnX4$�SU;���a��SnX4$��X4$�)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 objectz32-bit�32bitz64-bit�64bit�ELFzMach-O�PEr6��rd���COFFzMS-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�������������������.�����[��������SS5������tp�/�SQ[��������U�5���������n�U�(�������a��U�$��[ ��������R������������������R������������������SS5������=(�������d �� �[ ��������R������������������R������������������SS5������$�!�[��������[��������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��1B�B� B�Bc��������������������<�����\�rS�rSr\S�5�������rS�rS�rS�rS�r Sr g) � _Processoria��c������������������r�����[��������U�S[��������R�������������������3U�R������������������5������nU"�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�������������������������[��������SSS5������u��pU�SU��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������SS�K�n�U�R������������������SS5������u��pUS:���a��S$�S$�!�[���������a�� ��g�f�=�f)Nr���zSYI$_CPU����r{���VAX)�vms_lib�getsyir����)r����csid� cpu_numbers��� r"����get_OpenVMS�_Processor.get_OpenVMSo��sE������ ;��� '�~�~�j�!�<��D�(�C�/�7�:�U�:�� ��� �� �s����$�� 1�1c������������������������[���������R������������������R������������������R������������������S5������(�������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�������������������������SSK�n��U�R������������������SS/U�R������������������SSS9R ������������������5�������$�!�[���������a�� ��gf�=�f!�[ ��������U�R������������������4�a�� ��gf�=�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�Ar����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���^���\�rS�rSrSrSr\R������������������S�5�������rU�4S�jr \ S�5�������rS�rS�r S �rS rU�=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������������������"�[��������TU�] ��5�������U�R������������������45������$�r����)� itertools�chain�super�__iter__r���)r���� __class__s��� �r"���r����uname_result.__iter__���s)�����������G��� �^�^�� �� r����c�����������������������[��������U�R������������������5������S- ��nU�R������������������"�U�/UQ76�n[��������U5������US-���:w��a��SU�S[��������U5�������3n[��������U5������eU$�)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��Ar����r����uname_result_basez#system node release version machinec�������������������f����[���������b��[���������$��[��������R������������������"�5�������=u��pp#pE[��������U5������(�������d���U�S:X��a ��[��������5�������u��p#pgU=(�������d �� �[��������5�������nU(�������a��U(�������d3��[��������U�5������u��pnU�S:X��a��Sn�OU�S:X��a��US:X��a��Sn�SUSS �:X��a��S nOSnU�S;���a��U(�������d��U�S:X��a��SnOS nSn�O2U�SS�S:X��a)��[��������5�������u��p(p�Sn�SR������������������U 5������nU(�������d��UnU�S:X��a��U(�������a��US:X��a��UnSnU�S:X��a ��US:X��a��Sn�S n[��������R ������������������S:X��a��Sn�[��������5�������R������������������n[��������R ������������������S:X��a��[��������5�������u��p �nXX#U4n[!��������[#��������[$��������U5������6�q�[���������$�!�[���������a%�� �[��������R ������������������n�[ ��������5�������nS=n=p4Sn�GN�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_���zMicrosoft Windowsr6��� Microsoftz6.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�/F0c�������������������*�����[��������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�S5������nUb��U$�[���������R������������������R������������������S5������(�������a|��[��������R������������������"�S[��������R������������������5������nSnUR������������������U�5������nUc��[��������S[��������U�5������-��5������eUR������������������5�������u��pVpxn Uc��Sn[���������R������������������n O�SU�;���aY��[��������R������������������"�S5������nSnUR������������������U�5������nUc��[��������S [��������U�5������-��5������eUR������������������5�������u��pVpxSn O{[��������R������������������"�S [��������R������������������5������nUR������������������U�5������nUc��[��������S[��������U�5������-��5������eUR������������������5�������u��pVpxn SnUc��SnOU(�������a��US -���U-���n[��������[���������S5������(�������a��[���������R������������������u��p�nO-[��������[���������S5������(�������a��[���������R������������������u��p�nOSn SnUR!������������������S5������n[#��������U5������S:X��a"��UR%������������������S5������ �SR'������������������U5������nX5X�XgU 4nU[��������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������������������S5������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�������SS�$�)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������������������X4S5������nUb��U$�[��������5�������u��p4pVpxXx:X��a��SnU�(�������a��[��������X5U5������u��p5nUS:X��a;��[��������R ������������������S:X��a��[ ��������5�������u��p5 �n O[��������5�������S���n U (�������a��SnU nUS:X��a.��[��������U5������u��p�p�U(�������a��[��������X55������nO�[��������X5Xm5������nO�US:X��a��[��������5�������u��nn[��������X5XxS UU-���5������nO�US :X��a?��[��������5�������u��nnnu��nnnU(�������d��U(�������d ��[��������X5U5������nOO[��������X5USUUU5������nO>U(�������a��[��������X55������nO+[��������[��������R������������������5������u��nn[��������X5UUUU5������nU[���������X4'���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����������������������SSSS.n[���������R������������������"�S5������n[���������R������������������"�S5������nU��HK��nUR������������������U5������nUc��M��UR������������������SUR ������������������S5������5������XR ������������������S5������'���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��Sn�[���������H5��n�[��������USS9�n[��������U5������q�SSS5������ � �[���������R������������������5�������$�� �[ ��������U�SSR ������������������[��������5�������35������e[���������R������������������5�������$�!�,�(�������d��f �� � �N[=�f!�[���������a��nUR ������������������n��SnAM���SnAff�=�f)zKReturn operation system identification from freedesktop.org os-release Nzutf-8)rg���zUnable 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� ��LN�!�"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��0F<�;F<