my attempt to do python 2.6 compatibility thing
authorFabian Groffen <grobian@gentoo.org>
Tue, 1 Jul 2008 17:40:20 +0000 (17:40 -0000)
committerFabian Groffen <grobian@gentoo.org>
Tue, 1 Jul 2008 17:40:20 +0000 (17:40 -0000)
svn path=/main/branches/prefix/; revision=10882

pym/portage/const.py

index c96037d975c0c05fc3ddf23b4bfc3de2e12b1612..94996dc6b7fc12a3d48d8371eb3fbaf4918477ae 100644 (file)
@@ -12,7 +12,7 @@ from portage.const_autotool import *
 # save the original prefix
 BPREFIX = EPREFIX
 # pick up EPREFIX from the environment if set
-if os.environ.has_key("EPREFIX"):
+if "EPREFIX" in os.environ:
        EPREFIX = os.path.normpath(os.environ["EPREFIX"])
 
 # ===========================================================================