From eac6e2920e66b7507966a6ea2b9889788c7a3a21 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 16 Nov 2013 07:54:57 +0530 Subject: [PATCH] Fix incompatibility with older sip/PyQt4 --- src/calibre/gui2/tweak_book/editor/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/tweak_book/editor/__init__.py b/src/calibre/gui2/tweak_book/editor/__init__.py index 76a59f6a67..96f1a47a1e 100644 --- a/src/calibre/gui2/tweak_book/editor/__init__.py +++ b/src/calibre/gui2/tweak_book/editor/__init__.py @@ -31,7 +31,7 @@ SYNTAX_PROPERTY = QTextCharFormat.UserProperty class SyntaxTextCharFormat(QTextCharFormat): - def __init__(self, *args, **kwargs): - QTextCharFormat.__init__(self, *args, **kwargs) + def __init__(self, *args): + QTextCharFormat.__init__(self, *args) self.setProperty(SYNTAX_PROPERTY, True)