mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-20 14:12:20 -04:00
...
This commit is contained in:
@@ -193,7 +193,7 @@ class OptionSet(object):
|
||||
try:
|
||||
if not isinstance(src, unicode):
|
||||
src = src.decode('utf-8')
|
||||
src = src.replace(u'PyQt4.QtCore', u'PyQt5.QtCore')
|
||||
src = src.replace(u'PyQt%d.QtCore' % 4, u'PyQt5.QtCore')
|
||||
exec src in options
|
||||
except:
|
||||
print 'Failed to parse options string:'
|
||||
|
||||
Reference in New Issue
Block a user