mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-29 04:13:43 +03:00
11 lines
176 B
Python
11 lines
176 B
Python
|
import sys
|
||
|
|
||
|
if sys.version_info[0] == 2:
|
||
|
# Python 2
|
||
|
string_types = basestring,
|
||
|
text_type = unicode
|
||
|
else:
|
||
|
# Python 3
|
||
|
string_types = str,
|
||
|
text_type = str
|