diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-01 12:38:49 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-01 12:38:49 +0000 |
commit | 83499617458a93217e8f1ed5194c16f2b3bedc40 (patch) | |
tree | 3337cac977a844506cc7ac03fa046a65ec130c9b /pym/portage/manifest.py | |
parent | Add a "prefix" keyword parameter to slot_dict_class() which controls the (diff) | |
download | portage-83499617458a93217e8f1ed5194c16f2b3bedc40.tar.gz portage-83499617458a93217e8f1ed5194c16f2b3bedc40.tar.bz2 portage-83499617458a93217e8f1ed5194c16f2b3bedc40.zip |
Py3k compatibility patch #1 by Ali Polatel <hawking@g.o>.
Replace dict.has_key() calls with "in" and "not in" operators..
svn path=/main/trunk/; revision=10870
Diffstat (limited to 'pym/portage/manifest.py')
-rw-r--r-- | pym/portage/manifest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/manifest.py b/pym/portage/manifest.py index 9c8ab371a..50ed2f52f 100644 --- a/pym/portage/manifest.py +++ b/pym/portage/manifest.py @@ -419,9 +419,9 @@ class Manifest(object): """ Regenerate hashes for the given file """ if checkExisting: self.checkFileHashes(ftype, fname, ignoreMissing=ignoreMissing) - if not ignoreMissing and not self.fhashdict[ftype].has_key(fname): + if not ignoreMissing and fname not in self.fhashdict[ftype]: raise FileNotInManifestException(fname) - if not self.fhashdict[ftype].has_key(fname): + if fname not in self.fhashdict[ftype]: self.fhashdict[ftype][fname] = {} myhashkeys = list(self.hashes) if reuseExisting: |