raise NotImplementedError
def record_issue(self, filepath, line_number):
- if filepath not in self.files_with_issues.keys():
+ if filepath not in list(self.files_with_issues.keys()):
self.files_with_issues[filepath] = []
self.files_with_issues[filepath].append(line_number)
def output_file_issues(self, logger):
- if self.files_with_issues.values():
+ if list(self.files_with_issues.values()):
logger.info(self.heading)
for filename, lines in sorted(self.files_with_issues.items()):
if lines: