mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
_mysql imports now, but still crashes
This commit is contained in:
@ -5,7 +5,12 @@ 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, Warning
|
||||
try:
|
||||
from exceptions import Exception, StandardError, Warning
|
||||
except ImportError:
|
||||
# Python 3
|
||||
StandardError = Exception
|
||||
|
||||
|
||||
class MySQLError(StandardError):
|
||||
|
||||
@ -80,4 +85,3 @@ class NotSupportedError(DatabaseError):
|
||||
has transactions turned off."""
|
||||
|
||||
|
||||
del Exception, StandardError
|
||||
|
Reference in New Issue
Block a user