Skip to content

Commit ec35036

Browse files
committed
ugh py3!
1 parent 7b14fa6 commit ec35036

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎v3/pg_encoder.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
# TODO: maybe use the 'six' library to smooth over Py2 and Py3 incompatibilities?
8080
is_python3 = (sys.version_info[0] == 3)
8181
if is_python3:
82-
long = None # Avoid NameError when evaluating "long"
82+
# avoid name errors (GROSS!)
83+
long = int
84+
unicode = str
8385

8486

8587
def is_class(dat):

0 commit comments

Comments
 (0)