For python-2.3 compatibility, don't pass an iterable into dict.update().
authorZac Medico <zmedico@gentoo.org>
Fri, 5 Jan 2007 11:29:15 +0000 (11:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 5 Jan 2007 11:29:15 +0000 (11:29 -0000)
svn path=/main/trunk/; revision=5464

pym/portage.py

index 322bd2534a86dabb60cb673ed8eaeaf4a4ff1994..c3cad415321dcacd39ed9c3a3a0244430fc99488 100644 (file)
@@ -5137,7 +5137,8 @@ class vardbapi(dbapi):
                if pull_me:
                        # pull any needed data and cache it
                        aux_keys = list(pull_me)
-                       mydata.update(izip(aux_keys, self._aux_get(mycpv, aux_keys)))
+                       for k, v in izip(aux_keys, self._aux_get(mycpv, aux_keys)):
+                               mydata[k] = v
                        if not cache_valid:
                                cache_data = {}
                                for aux_key in self._aux_cache_keys: