diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-10 08:15:57 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-10 08:15:57 +0000 |
commit | 5bb74f40aa938cd2c5c71bde231c49918107ac1c (patch) | |
tree | d1bb6793be2556e02e151b2f27d441a4d47bd76d | |
parent | 2e85bdac66c447639c5b9378f83ffd62cee27c23 (diff) | |
download | portage-5bb74f40aa938cd2c5c71bde231c49918107ac1c.tar.gz portage-5bb74f40aa938cd2c5c71bde231c49918107ac1c.tar.bz2 portage-5bb74f40aa938cd2c5c71bde231c49918107ac1c.zip |
Don't default env=os.environ directly in the config constructor becausev2.2_rc24
that makes it show environment variables in api docs generated by epydoc.
svn path=/main/trunk/; revision=12824
-rw-r--r-- | pym/portage/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 24997e280..1dc81cf59 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -1117,7 +1117,7 @@ class config(object): def __init__(self, clone=None, mycpv=None, config_profile_path=None, config_incrementals=None, config_root=None, target_root=None, - local_config=True, env=os.environ): + local_config=True, env=None): """ @param clone: If provided, init will use deepcopy to copy by value the instance. @type clone: Instance of config class. @@ -1455,6 +1455,8 @@ class config(object): expand_map.update(env_d) # backupenv is used for calculating incremental variables. + if env is None: + env = os.environ self.backupenv = env.copy() if env_d: |