3
S^q                 @   s  d Z ddlZddlZddlZejd dkZerddlZyddlmZ W n e	k
r^   e
ZY nX ddlmZmZmZ dd ZeeejfZefZefZefZeefZejZnXddlZddlmZmZmZ dd ZeeejefZeefZefZeefZefZej Ze
ZdS )	zGThis module handles compatibility issues between Python 2 and Python 3.    N   )JSONDecodeError)urlparseunquote	parse_qslc             C   s   t j| jdS )zReturn the hexadecimal representation of the binary data.

        Args:
            data (str): The binary data.

        Returns:
            bytes: The hexadecimal representation of data.
        zutf-8)binasciihexlifydecode)data r   ?/tmp/pip-build-8app2_gc/mysql-connector-python/mysqlx/compat.pyr   0   s    	r   c             C   s
   | j dS )zReturn the hexadecimal representation of the binary data.

        Args:
            data (str): The binary data.

        Returns:
            bytes: The hexadecimal representation of data.
        hex)encode)r
   r   r   r   r   E   s    	)!__doc__sysdecimalr   version_infoPY3queueZjson.decoderr   ImportError
ValueErrorurllib.parser   r   r   r   intfloatDecimalZNUMERIC_TYPESZ	INT_TYPESstrZUNICODE_TYPESZSTRING_TYPES	bytearraybytesZ
BYTE_TYPESmaxsizeZMAX_INTQueuelongunicodeZmaxintr   r   r   r   <module>   s8   
