diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-01 12:42:15 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-01 12:42:15 +0000 |
commit | ff5c09fb29db5910308628aa06d2ffe368c7264a (patch) | |
tree | cad28c46fc47dfd7f8175c4fba3c62f2a4b5e7bd /pym/portage/cache/sql_template.py | |
parent | 83499617458a93217e8f1ed5194c16f2b3bedc40 (diff) | |
download | portage-ff5c09fb29db5910308628aa06d2ffe368c7264a.tar.gz portage-ff5c09fb29db5910308628aa06d2ffe368c7264a.tar.bz2 portage-ff5c09fb29db5910308628aa06d2ffe368c7264a.zip |
Py3k compatibility patch #2 by Ali Polatel <hawking@g.o>.
Replace dict.has_key() calls with "in" and "not in" operators.
svn path=/main/trunk/; revision=10871
Diffstat (limited to 'pym/portage/cache/sql_template.py')
-rw-r--r-- | pym/portage/cache/sql_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/sql_template.py b/pym/portage/cache/sql_template.py index f32a72844..196039c74 100644 --- a/pym/portage/cache/sql_template.py +++ b/pym/portage/cache/sql_template.py @@ -150,7 +150,7 @@ class SQLDatabase(template.database): # so we store only what's handed to us and is a known key db_values = [] for key in self._known_keys: - if values.has_key(key) and values[key] != '': + if key in values and values[key]: db_values.append({"key":key, "value":values[key]}) if len(db_values) > 0: |