mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
Handle types in a Python 3 friendly way
This commit is contained in:
8
MySQLdb/compat.py
Normal file
8
MySQLdb/compat.py
Normal file
@ -0,0 +1,8 @@
|
||||
import sys
|
||||
|
||||
if sys.version_info[0] == 3:
|
||||
unicode = str
|
||||
unichr = chr
|
||||
else:
|
||||
unicode = unicode
|
||||
unichr = unichr
|
Reference in New Issue
Block a user