Files
mysqlclient/MySQLdb/compat.py
INADA Naoki 8ad1525c3f Raise ProgrammingError for nan and inf (#314)
* Raise ProgrammingError when inf or nan is passed
  Fixes #246
* Rename _mysql_exceptions -> _exceptions
2018-12-14 16:46:30 +09:00

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