diff options
author | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2004-05-19 03:54:01 +0000 |
---|---|---|
committer | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2004-05-19 03:54:01 +0000 |
commit | 1fdb7422a6f3d0868a78bd1d6a1b66a690d22ff2 (patch) | |
tree | db1da0f86624efbd6dc20801cba85539488e5b81 /MySQLdb/_mysql_exceptions.py | |
parent | 187d93c188bc568929d915af654efcc6d1d8ab97 (diff) | |
download | mysqldb1-1fdb7422a6f3d0868a78bd1d6a1b66a690d22ff2.tar.gz |
Initial conversion to modern Python.
Diffstat (limited to 'MySQLdb/_mysql_exceptions.py')
-rw-r--r-- | MySQLdb/_mysql_exceptions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MySQLdb/_mysql_exceptions.py b/MySQLdb/_mysql_exceptions.py index 9614121..98037e5 100644 --- a/MySQLdb/_mysql_exceptions.py +++ b/MySQLdb/_mysql_exceptions.py @@ -5,14 +5,14 @@ These classes are dictated by the DB API v2.0: http://www.python.org/topics/database/DatabaseAPI-2.0.html """ -from exceptions import Exception, StandardError +from exceptions import Exception, StandardError, Warning class MySQLError(StandardError): """Exception related to operation with MySQL.""" -class Warning(MySQLError): +class Warning(Warning, MySQLError): """Exception raised for important warnings like data truncations while inserting, etc.""" |