mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove unneccessary import of PyQt
This commit is contained in:
parent
c6733399f7
commit
5e4e45ec92
@ -223,8 +223,7 @@ class OptionSet(object):
|
|||||||
if val is val is True or val is False or val is None or \
|
if val is val is True or val is False or val is None or \
|
||||||
isinstance(val, (int, float, long, basestring)):
|
isinstance(val, (int, float, long, basestring)):
|
||||||
return repr(val)
|
return repr(val)
|
||||||
from PyQt4.QtCore import QString
|
if val.__class__.__name__ == 'QString' or hasattr(val, 'isNull'):
|
||||||
if isinstance(val, QString):
|
|
||||||
return repr(unicode(val))
|
return repr(unicode(val))
|
||||||
pickle = cPickle.dumps(val, -1)
|
pickle = cPickle.dumps(val, -1)
|
||||||
return 'cPickle.loads(%s)'%repr(pickle)
|
return 'cPickle.loads(%s)'%repr(pickle)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user