summaryrefslogtreecommitdiff
path: root/paste/urlmap.py
diff options
context:
space:
mode:
authorseanc <devnull@localhost>2006-05-29 15:31:16 +0000
committerseanc <devnull@localhost>2006-05-29 15:31:16 +0000
commitd841ca4fe1f0b3547cc01cfe3e0b8714a5751cfd (patch)
treeedc4d14260b673f1f3bee3da1757b30a49749958 /paste/urlmap.py
parent5f0eeac5e22368a3923969d7d1430bd7db5d674a (diff)
downloadpaste-d841ca4fe1f0b3547cc01cfe3e0b8714a5751cfd.tar.gz
fix URLMap to make passing in a different not_found_app work
Diffstat (limited to 'paste/urlmap.py')
-rw-r--r--paste/urlmap.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/paste/urlmap.py b/paste/urlmap.py
index 142ff37..e89d250 100644
--- a/paste/urlmap.py
+++ b/paste/urlmap.py
@@ -85,7 +85,9 @@ class URLMap(DictMixin):
def __init__(self, not_found_app=None):
self.applications = []
- self.not_found_application = self.not_found_app
+ if not not_found_app:
+ not_found_app = self.not_found_app
+ self.not_found_application = not_found_app
norm_url_re = re.compile('//+')
domain_url_re = re.compile('^(http|https)://')