[entropy.db] use super() instead of class.__init__()
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user