Skip to content

Commit

Permalink
dot_find_cycles.py: Add Python 3 support
Browse files Browse the repository at this point in the history
Now compatible with both Python 2 and Python 3.
  • Loading branch information
adzenith committed May 23, 2018
1 parent f3b2826 commit 39065d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dot_find_cycles.py
Expand Up @@ -36,6 +36,9 @@
<http://blog.jasonantman.com/2012/03/python-script-to-find-dependency-cycles-in-graphviz-dot-files/>
CHANGELOG:
2018-05-23 Nikolaus Wittenstein <nikolaus.wittenstein@gmail.com>:
- add Python 3 support
2017-04-20 Frank Kusters <frank.kusters@sioux.eu>:
- added support for stdin
- add option for only showing shortest cycles
Expand Down Expand Up @@ -74,7 +77,7 @@ def main():
if args.only_shortest:
C = remove_super_cycles(C)
for i in C:
print i
print(i)


def remove_super_cycles(cycle_list):
Expand Down

0 comments on commit 39065d1

Please sign in to comment.