1 |
Author: grobian |
2 |
Date: 2008-07-01 17:40:20 +0000 (Tue, 01 Jul 2008) |
3 |
New Revision: 10882 |
4 |
|
5 |
Modified: |
6 |
main/branches/prefix/pym/portage/const.py |
7 |
Log: |
8 |
my attempt to do python 2.6 compatibility thing |
9 |
|
10 |
Modified: main/branches/prefix/pym/portage/const.py |
11 |
=================================================================== |
12 |
--- main/branches/prefix/pym/portage/const.py 2008-07-01 17:32:45 UTC (rev 10881) |
13 |
+++ main/branches/prefix/pym/portage/const.py 2008-07-01 17:40:20 UTC (rev 10882) |
14 |
@@ -12,7 +12,7 @@ |
15 |
# save the original prefix |
16 |
BPREFIX = EPREFIX |
17 |
# pick up EPREFIX from the environment if set |
18 |
-if os.environ.has_key("EPREFIX"): |
19 |
+if "EPREFIX" in os.environ: |
20 |
EPREFIX = os.path.normpath(os.environ["EPREFIX"]) |
21 |
|
22 |
# =========================================================================== |
23 |
|
24 |
-- |
25 |
gentoo-commits@l.g.o mailing list |