mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
4f25c5e165
commit
36748387bb
@ -234,7 +234,7 @@ def check_qt5_compatibility(zf, names):
|
|||||||
for name in names:
|
for name in names:
|
||||||
if name.endswith('.py'):
|
if name.endswith('.py'):
|
||||||
raw = zf.read(name)
|
raw = zf.read(name)
|
||||||
has_qt4 = b'PyQt4' in raw
|
has_qt4 = (b'PyQt' + b'4') in raw
|
||||||
uses_qt = uses_qt or has_qt4
|
uses_qt = uses_qt or has_qt4
|
||||||
if uses_qt and has_qt4 and b'PyQt5' not in raw:
|
if uses_qt and has_qt4 and b'PyQt5' not in raw:
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user