summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2012-02-06 22:36:46 -0800
committerPhilip Jenvey <pjenvey@underboss.org>2012-02-06 22:36:46 -0800
commitdfb48f933fca50515bdc165931781043ff1ed20b (patch)
tree05fe942b6e3958e9c290de7d53fb184f4bfbb229
parent3135ec1d85a7f07393eabc180362b3889ad57d25 (diff)
downloadpyramid-dfb48f933fca50515bdc165931781043ff1ed20b.tar.gz
pyramid-dfb48f933fca50515bdc165931781043ff1ed20b.tar.bz2
pyramid-dfb48f933fca50515bdc165931781043ff1ed20b.zip
simplify
-rw-r--r--pyramid/config/util.py4
1 files 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)