Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Python/DeleteEmptyComponents.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def main():

# Delete all immediate occurrences of the empty components.
deletedComponents = []
global k
k = 0
for component in componentsToDelete:

Expand All @@ -52,7 +53,7 @@ def main():
occurrences = root.allOccurrencesByComponent(component)
uniqueOccurrences = []
for occurrence in occurrences:
global k

for k in range(0, len(uniqueOccurrences)):
if occurrence is uniqueOccurrences[k]:
break
Expand Down