| .. | |||||
| __pycache__ | |||||
| __init__.py | |||||
| _ipaddress.py | |||||
| _json.py | |||||
| _lru_cache.py | |||||
| _psycopg.cpython-37m-x86_64-linux-gnu.so | |||||
| _range.py | |||||
| compat.py | |||||
| errorcodes.py | |||||
| errors.py | |||||
| extensions.py | |||||
| extras.py | |||||
| pool.py | |||||
| sql.py | |||||
| tz.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
| .. | |||||
| __pycache__ | |||||
| __init__.py | |||||
| _ipaddress.py | |||||
| _json.py | |||||
| _lru_cache.py | |||||
| _psycopg.cpython-37m-x86_64-linux-gnu.so | |||||
| _range.py | |||||
| compat.py | |||||
| errorcodes.py | |||||
| errors.py | |||||
| extensions.py | |||||
| extras.py | |||||
| pool.py | |||||
| sql.py | |||||
| tz.py |