From 4bd910865f36d48b28b36f3a1cdee2d5d93d39dd Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 1 Jul 2008 17:40:20 +0000 Subject: [PATCH] my attempt to do python 2.6 compatibility thing svn path=/main/branches/prefix/; revision=10882 --- pym/portage/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/const.py b/pym/portage/const.py index c96037d97..94996dc6b 100644 --- a/pym/portage/const.py +++ b/pym/portage/const.py @@ -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"]) # =========================================================================== -- 2.26.2