mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-20 19:45:23 +01:00
Remove unneccessary import of PyQt
This commit is contained in:
parent
c6733399f7
commit
5e4e45ec92
1 changed files with 1 additions and 2 deletions
|
|
@ -223,8 +223,7 @@ def serialize_opt(self, val):
|
|||
if val is val is True or val is False or val is None or \
|
||||
isinstance(val, (int, float, long, basestring)):
|
||||
return repr(val)
|
||||
from PyQt4.QtCore import QString
|
||||
if isinstance(val, QString):
|
||||
if val.__class__.__name__ == 'QString' or hasattr(val, 'isNull'):
|
||||
return repr(unicode(val))
|
||||
pickle = cPickle.dumps(val, -1)
|
||||
return 'cPickle.loads(%s)'%repr(pickle)
|
||||
|
|
|
|||
Loading…
Reference in a new issue