mirror of
https://github.com/jazzband/dj-database-url.git
synced 2026-05-23 06:15:54 +00:00
Travis didn't like my dict comprehension D:
This commit is contained in:
parent
7f6717e434
commit
4cc995adc7
1 changed files with 4 additions and 2 deletions
|
|
@ -55,8 +55,10 @@ def _parse_querystring_for_options(path):
|
|||
if not query_string:
|
||||
return
|
||||
qs = urlparse.parse_qs(query_string)
|
||||
return {key: values[-1] for key, values in qs.iteritems()}
|
||||
|
||||
result = {}
|
||||
for key, values in qs.iteritems():
|
||||
result[key] = values[-1]
|
||||
return result
|
||||
|
||||
|
||||
def parse(url, engine=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue