diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-01 12:53:07 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-01 12:53:07 +0000 |
commit | 56aea2672000174743514bcc7f58f41733f64ce4 (patch) | |
tree | c6d9cb04d5b2d50eb0670354a42123ac4e78c44c /bin/dohtml | |
parent | a4c79bdfd0b8e5a58ce1bfd181a41a8625370b73 (diff) | |
download | portage-56aea2672000174743514bcc7f58f41733f64ce4.tar.gz portage-56aea2672000174743514bcc7f58f41733f64ce4.tar.bz2 portage-56aea2672000174743514bcc7f58f41733f64ce4.zip |
Py3k compatibility patch #5 by Ali Polatel <hawking@g.o>.
Replace dict.has_key() calls with "in" and "not in" operators.
svn path=/main/trunk/; revision=10874
Diffstat (limited to 'bin/dohtml')
-rwxr-xr-x | bin/dohtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/dohtml b/bin/dohtml index 6162b0199..56f95bbfa 100755 --- a/bin/dohtml +++ b/bin/dohtml @@ -86,11 +86,11 @@ class OptionsClass: self.D = "" self.DOCDESTTREE = "" - if os.environ.has_key("PF"): + if "PF" in os.environ: self.PF = os.environ["PF"] - if os.environ.has_key("D"): + if "D" in os.environ: self.D = os.environ["D"] - if os.environ.has_key("_E_DOCDESTTREE_"): + if "_E_DOCDESTTREE_" in os.environ: self.DOCDESTTREE = os.environ["_E_DOCDESTTREE_"] self.allowed_exts = [ 'htm', 'html', 'css', 'js', |