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
|
||||
|
||||
if sys.version_info[0] == 3:
|
||||
PY2 = False
|
||||
unicode = str
|
||||
unichr = chr
|
||||
long = int
|
||||
else:
|
||||
if sys.version_info[0] == 2:
|
||||
PY2 = True
|
||||
unicode = unicode
|
||||
unichr = unichr
|
||||
long = long
|
||||
else:
|
||||
PY2 = False
|
||||
unicode = str
|
||||
unichr = chr
|
||||
long = int
|
||||
|
Reference in New Issue
Block a user