summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <julien.cristau@logilab.fr>2014-07-27 14:56:00 +0200
committerJulien Cristau <julien.cristau@logilab.fr>2014-07-27 14:56:00 +0200
commitf0924b600f7d6641cf79befad4b5f3f603737fd0 (patch)
treeadc3e6336e5eac724dc05f2c17b78df7d167389f
parent17e760c92c956d89e4d6eef54de49eb2d07ed54c (diff)
downloadlogilab-common-f0924b600f7d6641cf79befad4b5f3f603737fd0.tar.gz
graph: ensure we get predictable ordering
-rw-r--r--graph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/graph.py b/graph.py
index d62e8c0..9a77495 100644
--- a/graph.py
+++ b/graph.py
@@ -63,7 +63,7 @@ class DotBackend:
assert charset.lower() in ('utf-8', 'iso-8859-1', 'latin1'), \
'unsupported charset %s' % charset
self.emit('charset="%s"' % charset)
- for param in additionnal_param.iteritems():
+ for param in sorted(additionnal_param.iteritems()):
self.emit('='.join(param))
def get_source(self):