summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrussellballestrini <russell.ballestrini@gmail.com>2017-05-06 20:37:06 -0400
committerrussellballestrini <russell.ballestrini@gmail.com>2017-05-06 20:37:06 -0400
commit707e22afe530367645a25044a8ea4a1b8d803cd4 (patch)
tree972261a21918feab82d441af0d4a71c65492a7f6
parent203101c06c61a80d1023f1d21302eceae5f66e81 (diff)
downloadpyramid-707e22afe530367645a25044a8ea4a1b8d803cd4.tar.gz
pyramid-707e22afe530367645a25044a8ea4a1b8d803cd4.tar.bz2
pyramid-707e22afe530367645a25044a8ea4a1b8d803cd4.zip
make adjustments to make tests pass.
modified: pyramid/url.py
-rw-r--r--pyramid/url.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyramid/url.py b/pyramid/url.py
index 7b88c385c..7371acaa3 100644
--- a/pyramid/url.py
+++ b/pyramid/url.py
@@ -43,13 +43,14 @@ def parse_url_overrides(kw):
scheme = kw.pop('_scheme', None)
host = kw.pop('_host', None)
port = kw.pop('_port', None)
- qs = query = kw.pop('_query', '')
+ query = kw.pop('_query', '')
anchor = kw.pop('_anchor', '')
+ qs = ''
if query:
if isinstance(query, string_types):
qs = '?' + url_quote(query, QUERY_SAFE)
- elif query:
+ else:
qs = '?' + urlencode(query, doseq=True)
if anchor: