[entropy.db] use super() instead of class.__init__()

This commit is contained in:
Fabio Erculiani
2013-03-23 11:31:50 +00:00
parent b7ebbf8f47
commit da8a2a1d22
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ class MySQLCursorWrapper(SQLCursorWrapper):
def __init__(self, cursor, exceptions, errno):
self._errno = errno
self._conn_wr = cursor.connection
SQLCursorWrapper.__init__(self, cursor, exceptions)
super(MySQLCursorWrapper, self).__init__(cursor, exceptions)
def _proxy_call(self, *args, **kwargs):
"""
+1 -1
View File
@@ -48,7 +48,7 @@ class SQLiteCursorWrapper(SQLCursorWrapper):
"""
def __init__(self, cursor, exceptions):
SQLCursorWrapper.__init__(self, cursor, exceptions)
super(SQLiteCursorWrapper, self).__init__(cursor, exceptions)
def execute(self, *args, **kwargs):
return self._proxy_call(self._cur.execute, *args, **kwargs)