403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/DistUpgrade/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/DistUpgrade/__pycache__/S390xGeneration.cpython-314.pyc
+
E�i���\�Rt^RIt^RIHtHt!RR]4tRRltRRltR	R
ltR#)z�
S390xGeneration

This module provides functionality to determine the generation of the
s390x architecture based on the machine type.

Author: Simon Johnsson
Version: 0.0.1
N)�Enum�autoc�a�]tRt^toRt]!4t]!4t]!4t]!4t	]!4t
]!4tV3RlRltV3RlRlt
V3RlRltV3RlR	ltR
tVtR#)�S390xGenerationzs
S390xGeneration

This Enum class provides constants representing different generations
of the S390x architecture.
c�$<�V^8�dQhRRRS[/#���otherr�return��bool)�format�
__classdict__s"��=/usr/lib/python3/dist-packages/DistUpgrade/S390xGeneration.py�__annotate__�S390xGeneration.__annotate__"����(�(�-�(�$�(�c�4�VPVP8#�N��value��selfr	s&&r�__lt__�S390xGeneration.__lt__"����z�z�E�K�K�'�'rc�$<�V^8�dQhRRRS[/#rr)r
rs"�rrr%rrc�4�VPVP8�#rrrs&&r�__gt__�S390xGeneration.__gt__%rrc�$<�V^8�dQhRRRS[/#rr)r
rs"�rrr(����)�)�-�)�$�)rc�4�VPVP8*#rrrs&&r�__le__�S390xGeneration.__le__(����z�z�U�[�[�(�(rc�$<�V^8�dQhRRRS[/#rr)r
rs"�rrr+r"rc�4�VPVP8�#rrrs&&r�__ge__�S390xGeneration.__ge__+r&r�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�ZEC12�Z13�Z14�Z15�Z16�Z17rrr$r)�__static_attributes__�__classdictcell__)rs@rrrs^�����
�F�E�
�&�C�
�&�C�
�&�C�
�&�C�
�&�C�(�(�(�(�)�)�)�)rrc�>�V^8�dQhR\R\R,/#)r�machine_typer
N)�intr)r
s"rrr/s��%�%�c�%�o��6L�%rc��R\PR\PR\PR\PR\PR\PR\PR\PR	\P
R
\P
R\PR\P/pVPV4#)
z�
Get the S390x generation corresponding to the given machine type.

Returns:
    S390xGeneration | None: The corresponding S390x generation, or None if
    the machine code is unrecognized.
iii�i�iBiCiq!ir!i[i\i�#i�#)rr1r2r3r4r5r6�get)r:�mappings& r�_machine_type_to_generationr?/s���	
�o�#�#��o�#�#��o�!�!��o�!�!��o�!�!��o�!�!��o�!�!��o�!�!��o�!�!��o�!�!��o�!�!��o�!�!�%+�G�(�;�;�|�$�$rc�2�V^8�dQhR\R,/#�rr
N)r;)r
s"rrrNs����C�$�J�rc��\RR4;_uu_4pVFwpVPR4wr#pVP4R8XgK.VP4P4'gKT\	VP44uuuRRR4#	RRR4R# +'giR#;i \
\3dR#i;i)z�
Read the machine type from /proc/sysinfo.

Returns:
    int | None: The machine type as an integer, or None if it cannot be
    determined.
z
/proc/cpuinfo�r�:�machineN)�open�	partition�strip�isdigitr;�FileNotFoundError�
ValueError)�f�line�key�_rs     r�_read_machine_typerPNs����
�/�3�
'�
'�1��� $���s� 3�
����9�9�;�)�+����
�0E�0E�0G�0G��u�{�{�}�-�-�	(�
'��(��(�
'���
�z�*����sF�B2�,B�!B�-B�
B2�B�B2�B/	�)B2�/B2�2C�Cc�2�V^8�dQhR\R,/#rA)r)r
s"rrras��
5�
5�_�t�%;�
5rc�d�\4pVf\P!R4R#\V4#)z�
Return the current running s390x generation, otherwise None if not running
on s390x architecture or if the generation cannot be determined.
Nz/Failed to read machine type from /proc/cpuinfo!)rP�logging�warningr?)r:s r�get_system_s390x_generationrUas-��
&�'�L������I�J��&�|�4�4r)	r0rS�enumrrrr?rPrUr+rr�<module>rWs-�����)�d�)�<%�>�&
5r

Youez - 2016 - github.com/yon3zu
LinuXploit