mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
Update compat
This commit is contained in:
@ -1,12 +1,12 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
if sys.version_info[0] == 3:
|
if sys.version_info[0] == 2:
|
||||||
PY2 = False
|
|
||||||
unicode = str
|
|
||||||
unichr = chr
|
|
||||||
long = int
|
|
||||||
else:
|
|
||||||
PY2 = True
|
PY2 = True
|
||||||
unicode = unicode
|
unicode = unicode
|
||||||
unichr = unichr
|
unichr = unichr
|
||||||
long = long
|
long = long
|
||||||
|
else:
|
||||||
|
PY2 = False
|
||||||
|
unicode = str
|
||||||
|
unichr = chr
|
||||||
|
long = int
|
||||||
|
Reference in New Issue
Block a user