From 0f3138bbdba68e3ccd7a354480a82dd360a7c511 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 22 Apr 2014 16:54:53 +0530 Subject: [PATCH] ... --- src/calibre/utils/config_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/config_base.py b/src/calibre/utils/config_base.py index 5fd7bee68a..1de7550fcb 100644 --- a/src/calibre/utils/config_base.py +++ b/src/calibre/utils/config_base.py @@ -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:'