mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
Remove BaseCursor.__del__
Fixes #22 (Uncollectable cursor on Python 3.3)
This commit is contained in:
@ -17,7 +17,6 @@ import re
|
||||
|
||||
def defaulterrorhandler(connection, cursor, errorclass, errorvalue):
|
||||
"""
|
||||
|
||||
If cursor is not None, (errorclass, errorvalue) is appended to
|
||||
cursor.messages; otherwise it is appended to
|
||||
connection.messages. Then errorclass is raised with errorvalue as
|
||||
@ -25,7 +24,6 @@ def defaulterrorhandler(connection, cursor, errorclass, errorvalue):
|
||||
|
||||
You can override this with your own error handler by assigning it
|
||||
to the instance.
|
||||
|
||||
"""
|
||||
error = errorclass, errorvalue
|
||||
if cursor:
|
||||
|
Reference in New Issue
Block a user