mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-21 03:14:55 +02:00
...
This commit is contained in:
parent
25b9d4c118
commit
8580338d8c
1 changed files with 3 additions and 4 deletions
|
|
@ -7,7 +7,7 @@
|
|||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import re, itertools, time, traceback
|
||||
from itertools import repeat
|
||||
from itertools import repeat, izip, imap
|
||||
from datetime import timedelta
|
||||
from threading import Thread
|
||||
|
||||
|
|
@ -792,9 +792,8 @@ def set_marked_ids(self, id_dict):
|
|||
self.marked_ids_dict = dict.fromkeys(id_dict, u'true')
|
||||
else:
|
||||
# Ensure that all the items in the dict are text
|
||||
self.marked_ids_dict = {}
|
||||
for id_, val in id_dict.iteritems():
|
||||
self.marked_ids_dict[id_] = unicode(val)
|
||||
self.marked_ids_dict = dict(izip(id_dict.iterkeys(), imap(unicode,
|
||||
id_dict.itervalues())))
|
||||
|
||||
# Set the values in the cache
|
||||
marked_col = self.FIELD_MAP['marked']
|
||||
|
|
|
|||
Loading…
Reference in a new issue