HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //proc/722141/root/lib/python3.6/site-packages/docutils/__pycache__/_compat.cpython-36.opt-1.pyc
3

t2�e)�@s|dZddlZejdkr0eZZdZddlmZ	n$ddl
Z
e
jZdZdd�Zed	�j	Z	ejdkrxddl
Z
iigdfd
d�ZdS)a�
Python 2/3 compatibility definitions.

This module currently provides the following helper symbols:

* bytes (name of byte string type; str in 2.x, bytes in 3.x)
* b (function converting a string literal to an ASCII byte string;
  can be also used to convert a Unicode string into a byte string)
* u_prefix (unicode repr prefix: 'u' in 2.x, '' in 3.x)
  (Required in docutils/test/test_publisher.py)
* BytesIO (a StringIO class that works with bytestrings)
�N��u)�StringIO�cCs4t|t�r|jd�St|t�r"|Std|f��dS)N�latin1zInvalid argument %r for b())�
isinstance�str�encode�bytes�	TypeError)�s�r
�/usr/lib/python3.6/_compat.py�bs



r�io���cCstj||||�S)zxCompatibility definition for Python 2.4.

        Silently ignore the `level` argument missing in Python < 2.5.
        )�builtins�
__import__)�name�globals�locals�fromlist�levelr
r
rr*sr)rr)rr���)�__doc__�sys�version_inforrr
Zu_prefixrr�BytesIOrrr
r
r
r�<module>s