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)