BlockerCache: use _unicode() for pickled atoms
authorZac Medico <zmedico@gentoo.org>
Mon, 14 May 2012 06:28:41 +0000 (23:28 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 14 May 2012 06:28:41 +0000 (23:28 -0700)
pym/_emerge/BlockerCache.py

index 3ec63ced5dd61b2ea727c176154b93ac5a879edd..fce81f83abfdea15e63d69942e79d27d136cea94 100644 (file)
@@ -162,8 +162,8 @@ class BlockerCache(portage.cache.mappings.MutableMapping):
                @param blocker_data: An object with counter and atoms attributes.
                @type blocker_data: BlockerData
                """
-               self._cache_data["blockers"][_unicode(cpv)] = \
-                       (blocker_data.counter, tuple(str(x) for x in blocker_data.atoms))
+               self._cache_data["blockers"][_unicode(cpv)] = (blocker_data.counter,
+                       tuple(_unicode(x) for x in blocker_data.atoms))
                self._modified.add(cpv)
 
        def __iter__(self):