summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/config/__init__.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/pyramid/config/__init__.py b/pyramid/config/__init__.py
index 9899f2117..a2014b1b5 100644
--- a/pyramid/config/__init__.py
+++ b/pyramid/config/__init__.py
@@ -441,12 +441,9 @@ class Configurator(
callable(*args, **kw)
else:
- info = self.info
+ info = self.info # usually a ZCML action if self.info has data
if not info:
- # Try to provide more accurate info for conflict reports by
- # wrapping the context in a decorator and attaching caller info
- # to it, unless the context already has info (if it already has
- # info, it's likely a context generated by a ZCML directive).
+ # Try to provide more accurate info for conflict reports
if self._ainfo:
info = self._ainfo[0]
else:
@@ -595,7 +592,7 @@ class Configurator(
old_route_prefix.rstrip('/'),
route_prefix.lstrip('/')
)
- route_prefix = route_prefix.lstrip('/').rstrip('/')
+ route_prefix = route_prefix.strip('/')
if not route_prefix:
route_prefix = None