Skip to content

Commit

Permalink
#1990 Added forgotten lowercasing of module name to avoid a module na…
Browse files Browse the repository at this point in the history
…me with inconsistent capitalisation in a program results in adding a module twice.
  • Loading branch information
hiker committed Jan 11, 2024
1 parent 43bf301 commit 66df0be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/psyclone/parse/module_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,10 @@ def get_all_dependencies_recursively(self, all_mods):
not_found = set()

while todo:
# Pick one (random) module to handle:
module = todo.pop()
# Pick one (random) module to handle (convert to lowercase
# in case that the code use inconsistent capitalisation)
module = todo.pop().lower()

# Ignore any modules that we were asked to ignore
if module in self.ignores():
continue
Expand Down

0 comments on commit 66df0be

Please sign in to comment.