summaryrefslogtreecommitdiff
path: root/repoze/bfg/wsgi.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-06-22 02:30:13 +0000
committerChris McDonough <chrism@agendaless.com>2009-06-22 02:30:13 +0000
commit1cd5984995fefa64bdb7bdd47e6e09e8d424f6d2 (patch)
tree5d111a0d62170b38320a9910c25306610a4987e2 /repoze/bfg/wsgi.py
parentffdbee31ce747c723988ef5ae94a0d02400718ba (diff)
downloadpyramid-1cd5984995fefa64bdb7bdd47e6e09e8d424f6d2.tar.gz
pyramid-1cd5984995fefa64bdb7bdd47e6e09e8d424f6d2.tar.bz2
pyramid-1cd5984995fefa64bdb7bdd47e6e09e8d424f6d2.zip
- The values of ``subpath``, ``traversed``, and ``virtual_root_path``
attached to the request object are always now tuples instead of lists (performance).
Diffstat (limited to 'repoze/bfg/wsgi.py')
-rw-r--r--repoze/bfg/wsgi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/repoze/bfg/wsgi.py b/repoze/bfg/wsgi.py
index 3991d3344..545b3e93c 100644
--- a/repoze/bfg/wsgi.py
+++ b/repoze/bfg/wsgi.py
@@ -71,11 +71,11 @@ def wsgiapp2(wrapped):
"""
def decorator(context, request):
traversed = request.traversed
- vroot_path = request.virtual_root_path or []
+ vroot_path = request.virtual_root_path or ()
view_name = request.view_name
subpath = request.subpath or ()
- script_list = traversed[len(vroot_path):]
- script_list = [ quote_path_segment(name) for name in script_list ]
+ script_tuple = traversed[len(vroot_path):]
+ script_list = [ quote_path_segment(name) for name in script_tuple ]
if view_name:
script_list.append(quote_path_segment(view_name))
script_name = '/' + '/'.join(script_list)