mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
8ce199cd6b
commit
0f3138bbdb
@ -193,7 +193,7 @@ class OptionSet(object):
|
|||||||
try:
|
try:
|
||||||
if not isinstance(src, unicode):
|
if not isinstance(src, unicode):
|
||||||
src = src.decode('utf-8')
|
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
|
exec src in options
|
||||||
except:
|
except:
|
||||||
print 'Failed to parse options string:'
|
print 'Failed to parse options string:'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user