From da8a2a1d228a2d76f1a982280d7808f05e549010 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 23 Mar 2013 11:31:50 +0000 Subject: [PATCH] [entropy.db] use super() instead of class.__init__() --- lib/entropy/db/mysql.py | 2 +- lib/entropy/db/sqlite.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)