fix for python3

This commit is contained in:
Kenneth Reitz 2016-02-02 17:36:35 -05:00
parent a14d69adb2
commit bf55358444

View file

@ -97,7 +97,7 @@ def parse(url, engine=None, conn_max_age=0):
# Parse the query string into OPTIONS.
qs = urlparse.parse_qs(url.query)
options = {}
for key, values in qs.iteritems():
for key, values in qs.items():
options[key] = values[-1]
if options:
config['OPTIONS'] = options