Skip to content

Commit

Permalink
fix: remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Apr 11, 2023
1 parent 86ead37 commit 92f3e81
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/creosote/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,10 @@ def map_dep_to_import_via_top_level_txt_file(
dep_name = self.canonicalize_module_name(dep_info.name)

for top_level_filepath in self.top_level_filepaths:
# logger.debug(f"SEARCHING {dep_name} IN {top_level_filepath}")
normalized_top_level_filepath = top_level_filepath.as_posix()
matches = self.top_level_txt_pattern.findall(normalized_top_level_filepath)
for import_name_from_top_level in matches:
if import_name_from_top_level.lower() == dep_name.lower():
# logger.debug(f"OPENING {dep_name} IN {top_level_filepath}")
with open(top_level_filepath, "r", encoding="utf-8") as infile:
lines = infile.readlines()
dep_info.top_level_import_names = [line.strip() for line in lines]
Expand All @@ -104,12 +102,10 @@ def map_dep_to_import_via_record_file(self, dep_info: DependencyInfo) -> bool:
dep_name = self.canonicalize_module_name(dep_info.name)

for record_filepath in self.record_filepaths:
# logger.debug(f"SEARCHING {dep_name} IN {record_filepath}")
normalized_record_filepath = record_filepath.as_posix()
matches = self.record_pattern.findall(normalized_record_filepath)
for import_name_from_record in matches:
if import_name_from_record.lower() == dep_name.lower():
# logger.debug(f"OPENING {dep_name} IN {record_filepath}")
with open(record_filepath, "r", encoding="utf-8") as infile:
lines = infile.readlines()

Expand Down

0 comments on commit 92f3e81

Please sign in to comment.