# HG changeset patch # User Julien Cristau # Date 1424078489 -3600 # Node ID f753f364550f767e9601343beb1832c1cbc914d4 # Parent 55413788be1025456ac027297212eb2a01ba7e16 [req] make rebuild_url predictable Fixes test with python -R. Related to #4959402. diff -r 55413788be10 -r f753f364550f req.py --- a/req.py Fri Feb 13 15:12:31 2015 +0100 +++ b/req.py Mon Feb 16 10:21:29 2015 +0100 @@ -357,7 +357,7 @@ for key, val in sorted(newparams.iteritems()): query[key] = (self.url_quote(val),) query = '&'.join(u'%s=%s' % (param, value) - for param, values in query.items() + for param, values in sorted(query.items()) for value in values) return urlunsplit((schema, netloc, path, query, fragment))