From dd45cf8171c0ab08afa7529a3841c67c1fc01a02 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Sat, 16 Apr 2016 15:22:59 -0500 Subject: fix format string to work on py26 --- pyramid/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyramid/session.py b/pyramid/session.py index 8e5ee8dd6..a88d8a71c 100644 --- a/pyramid/session.py +++ b/pyramid/session.py @@ -192,7 +192,7 @@ def check_csrf_origin(request, trusted_origins=None, raises=True): if not any(is_same_domain(originp.netloc, host) for host in trusted_origins): reason = ( - "Referer checking failed - {} does not match any trusted " + "Referer checking failed - {0} does not match any trusted " "origins." ) return _fail(reason.format(origin)) -- cgit v1.2.3