diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-10-18 11:53:07 +0200 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-10-18 11:53:07 +0200 |
commit | 5553a7c1150ceac2f17d781cb09fdf475d7d7f91 (patch) | |
tree | da536427753ddfe915647b891531b05e1665e462 /graph.py | |
parent | 0ea75902f065515d2dc49d18a642958a62876cc7 (diff) | |
download | logilab-common-5553a7c1150ceac2f17d781cb09fdf475d7d7f91.tar.gz |
py3.x compat: pass a key to sorted
Diffstat (limited to 'graph.py')
-rw-r--r-- | graph.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -189,7 +189,7 @@ def ordered_nodes(graph): ordered = [] while graph: # sorted to get predictable results - for node, deps in sorted(graph.items()): + for node, deps in sorted(graph.items(), key=id): if not deps: ordered.append(node) del graph[node] |