This commit is contained in:
Kovid Goyal 2014-04-22 15:11:45 +05:30
parent 7d0a047026
commit 30186ad1d9

View File

@ -195,7 +195,7 @@ class OptionSet(object):
src = src.decode('utf-8') src = src.decode('utf-8')
src = src.replace(u'PyQt5.QtCore', u'PyQt4.QtCore') src = src.replace(u'PyQt5.QtCore', u'PyQt4.QtCore')
exec src in options exec src in options
except RuntimeError: except (SystemError, RuntimeError):
try: try:
src = src.replace('PyQt' + '4', 'PyQt5') src = src.replace('PyQt' + '4', 'PyQt5')
exec src in options exec src in options