From: Zac Medico Date: Wed, 11 Mar 2009 07:48:13 +0000 (-0000) Subject: Don't default env=os.environ directly in the config constructor because X-Git-Tag: v2.1.6.8~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8d4851ca9b3db3bee0fea45c8fa7e12e156fae79;p=portage.git 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 --- 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: