From 8d4851ca9b3db3bee0fea45c8fa7e12e156fae79 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 07:48:13 +0000 Subject: Don't default env=os.environ directly in the config constructor because that makes it show environment variables in api docs generated by epydoc. (trunk r12824) svn path=/main/branches/2.1.6/; revision=13055 --- pym/portage/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index dc007cb24..80ab03a95 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: -- cgit v1.2.3-1-g7c22