@@ -782,18 +782,17 @@ def analyse_list_of_projects(date, projects_to_analyse,
782782 proc .join ()
783783
784784 # Accummulate the data from all the projects.
785- for project_key in analyses_dictionary :
785+ for project_info in analyses_dictionary . values () :
786786 # Append project timestamp to the list of timestamps
787- project_timestamp = analyses_dictionary [project_key ][
788- 'project_timestamp' ]
787+ project_timestamp = project_info ['project_timestamp' ]
789788 project_timestamps .append (project_timestamp )
790789 db_timestamp ['fuzzer_count' ] += project_timestamp ['fuzzer-count' ]
791790
792791 # Accummulate all function list and branch blockers
793792 introspector_dictionary = project_timestamp .get (
794793 'introspector-data' , None )
795794
796- if introspector_dictionary != None :
795+ if introspector_dictionary is not None :
797796 proj = introspector_dictionary ['project_name' ]
798797 # Functions
799798 if proj in function_dict :
@@ -822,12 +821,10 @@ def analyse_list_of_projects(date, projects_to_analyse,
822821 'function_coverage_estimate' ] += introspector_dictionary [
823822 'functions_covered_estimate' ]
824823
825- all_header_files .append (
826- analyses_dictionary [project_key ]['all-header-files' ])
824+ all_header_files .append (project_info ['all-header-files' ])
827825
828- coverage_dictionary = analyses_dictionary [project_key ].get (
829- 'coverage-data-dict' , None )
830- if coverage_dictionary != None :
826+ coverage_dictionary = project_info .get ('coverage-data-dict' , None )
827+ if coverage_dictionary is not None :
831828 # Accummulate various stats for the DB timestamp.
832829 db_timestamp ["accummulated_lines_total" ] += coverage_dictionary [
833830 'line_coverage' ]['count' ]
0 commit comments