Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / extlibs / mbedtls / mbedtls / tests / scripts / check-files.py
index 00fd0ed..d315840 100755 (executable)
@@ -48,12 +48,12 @@ class FileIssueTracker(object):
         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: