r47203 - make the kwargs sorted
hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Sun, 10 Apr 2016 06:50:42 -0600 (MDT)
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: hawkowl
Date: Sun Apr 10 06:50:37 2016
New Revision: 47203
Added:
branches/haproxy-dict-ordering-8286/twisted/topfiles/8286.misc
Modified:
branches/haproxy-dict-ordering-8286/twisted/protocols/haproxy/_parser.py
Log:
make the kwargs sorted
Modified: branches/haproxy-dict-ordering-8286/twisted/protocols/haproxy/_parser.py
==============================================================================
--- branches/haproxy-dict-ordering-8286/twisted/protocols/haproxy/_parser.py (original)
+++ branches/haproxy-dict-ordering-8286/twisted/protocols/haproxy/_parser.py Sun Apr 10 06:50:37 2016
@@ -35,10 +35,10 @@
description = ':'.join(
[quoteStringArgument(str(arg)) for arg in args] +
- ['%s=%s' % (quoteStringArgument(str(key)),
+ sorted(['%s=%s' % (quoteStringArgument(str(key)),
quoteStringArgument(str(value)))
for key, value in iteritems(kwargs)
- ])
+ ]))
return description