Skip to content

Commit

Permalink
Merge pull request #1 from gaohuia/master
Browse files Browse the repository at this point in the history
keep blank values of query
  • Loading branch information
ulasozguler authored Aug 6, 2018
2 parents 38f6836 + 04923bb commit b6a7923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion urlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class UrlparseCommand(ParseCommandBase):
@staticmethod
def _query_parse(val):
lines = []
query = dict(parse_qsl(val))
query = dict(parse_qsl(val, keep_blank_values=True))
max_key_len = max(map(len, query.keys())) + 3
for k, v in sorted(query.items()):
lines.append('{key} : {val}'.format(key=k.rjust(max_key_len, ' '), val=v))
Expand Down

0 comments on commit b6a7923

Please sign in to comment.