diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-09-24 14:44:16 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-09-24 14:44:16 +0200 |
commit | 2c6b07b2740b1d23617aa103e108e016766b6186 (patch) | |
tree | 1869c280aa98b60ce9c02594738c766a1da53f0b /graph.py | |
parent | b8d45493069b9374d7b354189abd63f96c49a966 (diff) | |
download | logilab-common-2c6b07b2740b1d23617aa103e108e016766b6186.tar.gz |
py2.3 compat : import compat.set, remove deprecated stuff
Diffstat (limited to 'graph.py')
-rw-r--r-- | graph.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -28,6 +28,7 @@ import os.path as osp import os import sys import tempfile +from logilab.common.compat import sorted, reversed def escape(value): """Make <value> usable in a dot file.""" @@ -183,7 +184,7 @@ def ordered_nodes(graph): """ cycles = get_cycles(graph) if cycles: - cycles = '\n'.join(' -> '.join(cycle) for cycle in cycles) + cycles = '\n'.join([' -> '.join(cycle) for cycle in cycles]) raise UnorderableGraph(cycles) ordered = [] while graph: |