summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-05 04:28:15 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-05 04:28:15 +0000
commit41caf107f990e4d4f45a641d1caf0f12f21895bc (patch)
tree879cb79add074175ec3563141fd86955d305c59f
parente11de525528b181242e54ef0a6af6a6670759c6f (diff)
downloadportage-41caf107f990e4d4f45a641d1caf0f12f21895bc.tar.gz
portage-41caf107f990e4d4f45a641d1caf0f12f21895bc.tar.bz2
portage-41caf107f990e4d4f45a641d1caf0f12f21895bc.zip
Remove unnecessary setting of default values to empty strings inside
database._getitem(). svn path=/main/trunk/; revision=12756
-rw-r--r--pym/portage/cache/metadata.py3
-rw-r--r--pym/portage/cache/sqlite.py2
2 files changed, 0 insertions, 5 deletions
diff --git a/pym/portage/cache/metadata.py b/pym/portage/cache/metadata.py
index 8f7992472..22cf51e56 100644
--- a/pym/portage/cache/metadata.py
+++ b/pym/portage/cache/metadata.py
@@ -69,9 +69,6 @@ class database(flat_hash.database):
# because it calls reconstruct_eclasses() internally.
d["_eclasses_"] = reconstruct_eclasses(None, d["_eclasses_"])
- for x in self._known_keys:
- d.setdefault(x, '')
-
return d
def _setitem(self, cpv, values):
diff --git a/pym/portage/cache/sqlite.py b/pym/portage/cache/sqlite.py
index 5a7bcf1f5..3e287f7ba 100644
--- a/pym/portage/cache/sqlite.py
+++ b/pym/portage/cache/sqlite.py
@@ -169,8 +169,6 @@ class database(fs_template.FsBased):
d[k]=str(d[k]) # convert unicode strings to normal
except UnicodeEncodeError, e:
pass #writemsg("%s: %s\n" % (cpv, str(e)))
- for x in self._known_keys:
- d.setdefault(x,'')
return d
def _setitem(self, cpv, values):