mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix incompatibility with older sip/PyQt4
This commit is contained in:
parent
fa3ca6c06d
commit
eac6e2920e
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user