diff --git a/lib/entropy/db/mysql.py b/lib/entropy/db/mysql.py index 903ac8483..d3eaae0e8 100644 --- a/lib/entropy/db/mysql.py +++ b/lib/entropy/db/mysql.py @@ -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): """ diff --git a/lib/entropy/db/sqlite.py b/lib/entropy/db/sqlite.py index 8b4c182bd..08afd6b67 100644 --- a/lib/entropy/db/sqlite.py +++ b/lib/entropy/db/sqlite.py @@ -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)