Skip to content

Commit

Permalink
fix off by one problem
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlange6 committed Sep 10, 2020
1 parent 1474396 commit 1829ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/ReleaseScripts/scripts/cmssw_cycle_finder.py
Expand Up @@ -40,7 +40,7 @@ def dfs_visit(G, u, discovered, finished):
if v in discovered:
print(f"Cycle detected: found a back edge from {u} to {v}. It involves")
for i,d in enumerate(discovered):
if i != len(discovered):
if i != len(discovered)-1:
print(d,end=', ')
else:
print(d)
Expand Down

0 comments on commit 1829ddb

Please sign in to comment.