projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0398593
)
my attempt to do python 2.6 compatibility thing
author
Fabian Groffen
<grobian@gentoo.org>
Tue, 1 Jul 2008 17:40:20 +0000
(17:40 -0000)
committer
Fabian 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
patch
|
blob
|
history
diff --git
a/pym/portage/const.py
b/pym/portage/const.py
index c96037d975c0c05fc3ddf23b4bfc3de2e12b1612..94996dc6b7fc12a3d48d8371eb3fbaf4918477ae 100644
(file)
--- 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"])
# ===========================================================================