3 Eã\)ã@s|dZddlZejdkr0eZZdZddlmZ n$ddl Z e jZdZdd„Ze d ƒj Z ejdkrxddl Z iigdfd d„Z dS)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 új/private/var/folders/pf/wv4htv3x0qs2c2mp0dnn0kchsvlck3/T/pip-install-emcbgzcf/docutils/docutils/_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Ús