HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //proc/self/root/opt/alt/python37/lib64/python3.7/site-packages/psycopg2/compat.py
import sys

__all__ = ['string_types', 'text_type', 'lru_cache']

if sys.version_info[0] == 2:
    # Python 2
    PY2 = True
    PY3 = False
    string_types = basestring,
    text_type = unicode
    from ._lru_cache import lru_cache

else:
    # Python 3
    PY2 = False
    PY3 = True
    string_types = str,
    text_type = str
    from functools import lru_cache