projects
/
asn2quickder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c166689
)
Sort assignments by name to make output repeatable
author
Michael Mattice
<mmattice@ok7-eleven.com>
Fri, 29 Jan 2016 20:00:49 +0000
(14:00 -0600)
committer
Kim Grasman
<kim.grasman@gmail.com>
Sun, 31 Jan 2016 19:04:48 +0000
(20:04 +0100)
Patch by Mike Mattice, thanks!
asn1ate/sema.py
patch
|
blob
|
history
diff --git
a/asn1ate/sema.py
b/asn1ate/sema.py
index
4fc222d
..
f011339
100644
(file)
--- a/
asn1ate/sema.py
+++ b/
asn1ate/sema.py
@@
-163,7
+163,7
@@
def dependency_sort(assignments):
component = tuple(connected_component)
result.append(component)
- for node in graph:
+ for node in sorted(graph.keys(), key=lambda a: a.reference_name()):
if node not in lowlinks:
strongconnect(node)