_mysql_exceptions.py | _mysql_exceptions.py | |||
---|---|---|---|---|
"""_mysql_exceptions: Exception classes for _mysql and MySQLdb. | """_mysql_exceptions: Exception classes for _mysql and MySQLdb. | |||
These classes are dictated by the DB API v2.0: | These classes are dictated by the DB API v2.0: | |||
http://www.python.org/topics/database/DatabaseAPI-2.0.html | https://www.python.org/dev/peps/pep-0249/ | |||
""" | """ | |||
try: | try: | |||
from exceptions import Exception, StandardError, Warning | from exceptions import Exception, StandardError, Warning | |||
except ImportError: | except ImportError: | |||
# Python 3 | # Python 3 | |||
StandardError = Exception | StandardError = Exception | |||
class MySQLError(StandardError): | class MySQLError(StandardError): | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |