From dfb48f933fca50515bdc165931781043ff1ed20b Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Mon, 6 Feb 2012 22:36:46 -0800 Subject: simplify --- pyramid/config/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyramid/config/util.py b/pyramid/config/util.py index 6c1bb8368..5f0dd98ac 100644 --- a/pyramid/config/util.py +++ b/pyramid/config/util.py @@ -44,7 +44,7 @@ def action_method(wrapped): self._ainfo = [] info = kw.pop('_info', None) # backframes for outer decorators to actionmethods - backframes = kw.pop('_backframes', 2) + backframes = kw.pop('_backframes', 2) if is_nonstr_iter(info) and len(info) == 4: # _info permitted as extract_stack tuple info = ActionInfo(*info) @@ -132,7 +132,7 @@ def make_predicates(xhr=None, request_method=None, path_info=None, request_method = sorted(request_method) def request_method_predicate(context, request): return request.method in request_method - text = "request method = %s" % repr(request_method) + text = "request method = %r" % request_method request_method_predicate.__text__ = text weights.append(1 << 2) predicates.append(request_method_predicate) -- cgit v1.2.3