From 03e2626a6b33584e2b4e1c7c446b4f311c0fb350 Mon Sep 17 00:00:00 2001 From: russellballestrini Date: Sat, 6 May 2017 21:29:30 -0400 Subject: pep8 fix modified: pyramid/url.py --- pyramid/url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyramid/url.py b/pyramid/url.py index 7371acaa3..cbfbfc553 100644 --- a/pyramid/url.py +++ b/pyramid/url.py @@ -55,7 +55,7 @@ def parse_url_overrides(kw): if anchor: anchor = url_quote(anchor, ANCHOR_SAFE) - if anchor.startswith('#') == False: + if not anchor.startswith('#'): anchor = '#' + anchor return app_url, scheme, host, port, qs, anchor -- cgit v1.2.3