Remove BaseCursor.__del__

Fixes #22 (Uncollectable cursor on Python 3.3)
This commit is contained in:
INADA Naoki
2015-02-25 03:53:21 +09:00
parent cac52c9541
commit a5716c33e4
2 changed files with 8 additions and 20 deletions

View File

@ -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: