mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 09:33:15 +02:00
Fix incompatibility with older sip/PyQt4
This commit is contained in:
parent
fa3ca6c06d
commit
eac6e2920e
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ def editor_from_syntax(syntax, parent=None):
|
|||
|
||||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue