mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 06:43:11 +02:00
...
This commit is contained in:
parent
5e4e45ec92
commit
3fb57e64f2
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +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)
|
||||
if val.__class__.__name__ == 'QString' or hasattr(val, 'isNull'):
|
||||
if val.__class__.__name__ == 'QString':
|
||||
return repr(unicode(val))
|
||||
pickle = cPickle.dumps(val, -1)
|
||||
return 'cPickle.loads(%s)'%repr(pickle)
|
||||
|
|
|
|||
Loading…
Reference in a new issue