Skip to content

Commit

Permalink
Better fix for #141
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Dec 7, 2017
1 parent 16d2e86 commit 35415a1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions yarl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,10 +760,7 @@ def _get_str_query(self, *args, **kwargs):
"should be str or int, got {!r}".format(v))
lst.append(
quoter(k, safe='/?:@') + '=' + quoter(v, safe='/?:@'))
query = '&'.join(lst)

if not query: # the mapping might have been empty
query = ''
query = '&'.join(lst)
elif isinstance(query, str):
query = _quote(query, safe='/?:@',
protected=PROTECT_CHARS,
Expand Down

0 comments on commit 35415a1

Please sign in to comment.