Show More
@@ -199,7 +199,7 b' def json(obj):' | |||||
199 | return '"%s"' % jsonescape(obj) |
|
199 | return '"%s"' % jsonescape(obj) | |
200 | elif util.safehasattr(obj, 'keys'): |
|
200 | elif util.safehasattr(obj, 'keys'): | |
201 | out = [] |
|
201 | out = [] | |
202 | for k, v in obj.iteritems(): |
|
202 | for k, v in sorted(obj.iteritems()): | |
203 | s = '%s: %s' % (json(k), json(v)) |
|
203 | s = '%s: %s' % (json(k), json(v)) | |
204 | out.append(s) |
|
204 | out.append(s) | |
205 | return '{' + ', '.join(out) + '}' |
|
205 | return '{' + ', '.join(out) + '}' |
General Comments 0
You need to be logged in to leave comments.
Login now