Skip to content

Commit

Permalink
fixing ResourceWarning due to unclosed file when aborting iterparse i…
Browse files Browse the repository at this point in the history
…teration. refs #21 (python/cpython#69893)
  • Loading branch information
namdre committed Mar 22, 2023
1 parent c54b841 commit 51b3663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/countEdgeUsage.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def parseTimed(outf, options):
periodEnd += period
begin += period
if depart >= options.end:
break
continue
number = getFlowNumber(elem) if elem.name == 'flow' else 1
src, dst, edges = getEdges(elem, options.taz, routeDict)
filterBy = [src, dst] if options.taz or not edges else edges
Expand Down

0 comments on commit 51b3663

Please sign in to comment.