This commit is contained in:
Kovid Goyal 2014-07-19 00:47:22 +05:30
parent 4f25c5e165
commit 36748387bb

View File

@ -234,7 +234,7 @@ def check_qt5_compatibility(zf, names):
for name in names:
if name.endswith('.py'):
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
if uses_qt and has_qt4 and b'PyQt5' not in raw:
return False