mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00

* Raise ProgrammingError when inf or nan is passed Fixes #246 * Rename _mysql_exceptions -> _exceptions
15 lines
250 B
Python
15 lines
250 B
Python
import sys
|
|
|
|
if sys.version_info[0] == 2:
|
|
PY2 = True
|
|
unicode = unicode
|
|
unichr = unichr
|
|
long = long
|
|
StandardError = StandardError
|
|
else:
|
|
PY2 = False
|
|
unicode = str
|
|
unichr = chr
|
|
long = int
|
|
StandardError = Exception
|