From ca177e071bdba628c2a834178b7bf5f5a995e2e4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 8 Mar 2011 11:58:44 -0700 Subject: [PATCH] ... --- src/calibre/library/caches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/caches.py b/src/calibre/library/caches.py index acd3b78d68..76f5200f21 100644 --- a/src/calibre/library/caches.py +++ b/src/calibre/library/caches.py @@ -790,9 +790,9 @@ class ResultCache(SearchQueryParser): # {{{ # Simple list. Make it a dict of string 'true' self.marked_ids_dict = dict.fromkeys(id_dict, u'true') else: - self.marked_ids_dict = id_dict.copy() # Ensure that all the items in the dict are text - for id_,val in self.marked_ids_dict.iteritems(): + self.marked_ids_dict = {} + for id_, val in id_dict.iteritems(): self.marked_ids_dict[id_] = unicode(val) # Set the values in the cache