summaryrefslogtreecommitdiffstats
path: root/pym/portage/dispatch_conf.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-01 12:38:49 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-01 12:38:49 +0000
commit83499617458a93217e8f1ed5194c16f2b3bedc40 (patch)
tree3337cac977a844506cc7ac03fa046a65ec130c9b /pym/portage/dispatch_conf.py
parent3ab46b943befdd480b24c3d459555011dd04e120 (diff)
downloadportage-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/dispatch_conf.py')
-rw-r--r--pym/portage/dispatch_conf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dispatch_conf.py b/pym/portage/dispatch_conf.py
index 860ffea30..487065a84 100644
--- a/pym/portage/dispatch_conf.py
+++ b/pym/portage/dispatch_conf.py
@@ -31,7 +31,7 @@ def read_config(mandatory_opts):
sys.exit(1)
for key in mandatory_opts:
- if not opts.has_key(key):
+ if key not in opts:
if key == "merge":
opts["merge"] = "sdiff --suppress-common-lines --output='%s' '%s' '%s'"
else: