From 04c2fc5f264b03fcaeff8613df2967453c04b1a3 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 10 Sep 2011 18:00:54 -0400 Subject: garden --- pyramid/config/__init__.py | 9 +++------ 1 file 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 -- cgit v1.2.3