Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.32.1
Your Ip: 216.73.216.165
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : catch23.cpython-312.pyc
�

���g�
����dZddlmZddlZddlZddlmZejddk(Zere	e
eeefZe	efZ
efZeefZefZne	e
eefZe	fZ
efZefZeefZdd�Zd�Zd	�Zerd
�Zd�Zyej2Zd�Zy)
z Python v2 to v3 migration module�)�DecimalN�)�
HexLiteral�c��t|t�r|Strt|�St|t�rt|�St|t�s	t|j|���St|�S#t$rtd��wxYw)z(Initializes a bytearray from the payload)�encodingzpayload must be a str or bytes)�
isinstance�	bytearray�PY2�int�bytes�encode�AttributeError�
ValueError)�payloadrs  �n/opt/hc_python/lib64/python3.12/site-packages/../../../lib/python3.12/site-packages/mysql/connector/catch23.py�init_bytearrayr2s����'�9�%���
���!�!��'�3����!�!�
���
'�	?��W�^�^�X�^�>�?�?�
�W����	�	?��=�>�>�	?�s�A6�6Bc�N�trt|t�St|t�S)z&Returns whether a variable is a string)rr	�
basestring�str��objs r�isstrrFs��
��#�z�*�*��#�s�#�#�c�N�trt|t�St|t�S)z/Returns whether a variable is a of unicode type)rr	�unicoderrs r�	isunicoderMs��
��#�w�'�'��#�s�#�#rc��t|ttf�rtj|t|��Stj||�S)zAWrapper around struct.unpack handling buffer as bytes and strings)r	r
r
�struct�unpack_from�buffer)�fmt�bufs  r�
struct_unpackr$Vs;���c�I�u�-�.��%�%�c�6�#�;�7�7��!�!�#�s�+�+rc����fd�}|S)z�Decorator used to create a abstract base class

    We use this decorator to create abstract base classes instead of
    using the abc-module. The decorator makes it possible to do the
    same in both Python v2 and v3 code.
    c����|jj�}dD]}|j|d��|j}tr||d<n|f|z}�|j
||�S)�Wrapper)�__dict__�__weakref__N�
__metaclass__)r(�copy�pop�	__bases__r�__name__)�class_�attrs�attr�bases�
base_classs    �r�wrapperzmake_abc.<locals>.wrapperfsf������$�$�&��-�D��I�I�d�D�!�.�� � ���%+�E�/�"��I��%�E��&�/�/�5�%�8�8r�)r3r4s` r�make_abcr6_s���9��Nr)rzutf-8)�__doc__�decimalrr�sys�custom_typesr�version_inforr�float�long�
NUMERIC_TYPES�	INT_TYPESr�
UNICODE_TYPESr�STRING_TYPESr
�
BYTE_TYPESr
rrrr$�unpackr6r5rr�<module>rDs���0'��
�
�$�
���q��Q�����%��*�d�;�M��d��I��J�M���>�L���J��%��*�5�M���I��F�M��6�L��U�#�J��($�$��,���M�M�M�r
© 2025 XylotrechusZ