diff options
author | ianb <devnull@localhost> | 2006-12-20 22:42:05 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-12-20 22:42:05 +0000 |
commit | 0d3cadf36551fa0bd88ea4f615772cef6f1d19e0 (patch) | |
tree | 72df0b5f1c28cf1f5e3bf8cb966424d9970bd3f4 /paste/recursive.py | |
parent | 8122da5775577faad229f9febc2838d4af3425b4 (diff) | |
download | paste-0d3cadf36551fa0bd88ea4f615772cef6f1d19e0.tar.gz |
Use a more appropriate parameter name
Diffstat (limited to 'paste/recursive.py')
-rw-r--r-- | paste/recursive.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/recursive.py b/paste/recursive.py index a1515f1..fbd213e 100644 --- a/paste/recursive.py +++ b/paste/recursive.py @@ -242,15 +242,15 @@ class Recursive(object): self.previous_environ = environ self.start_response = start_response - def __call__(self, path, new_environ=None): + def __call__(self, path, extra_environ=None): """ `extra_environ` is an optional dictionary that is also added to the forwarded request. E.g., ``{'HTTP_HOST': 'new.host'}`` could be used to forward to a different virtual host. """ environ = self.original_environ.copy() - if new_environ: - environ.update(new_environ) + if extra_environ: + environ.update(extra_environ) environ['paste.recursive.previous_environ'] = self.previous_environ base_path = self.original_environ.get('SCRIPT_NAME') if path.startswith('/'): |