@@ -24,8 +24,7 @@ def all_fortran_paths(root_path: pathlib.Path):
2424 all_input_paths = []
2525 for extension in itertools .chain (
2626 * [(_ , _ .upper ()) for _ in ('.f' , '.f90' , '.f03' , '.f08' , '.h' )]):
27- input_paths = root_path .glob (
28- f'**/*{ extension } ' )
27+ input_paths = root_path .glob ('**/*{}' .format (extension ))
2928 for input_path in input_paths :
3029 input_path = input_path .resolve ()
3130 all_input_paths .append (input_path )
@@ -155,14 +154,14 @@ def check_cases_and_report(
155154 else :
156155 self .fail ('{} {}' .format (type (result ), result ))
157156
158- with open (report_path , 'w' ) as report_file :
157+ with open (str ( report_path ) , 'w' ) as report_file :
159158 print ('<path>{}</path>' .format (input_path ), file = report_file )
160159 if hasattr (result , 'stderr' ) and result .stderr :
161160 print ('<stderr>' , file = report_file )
162161 print (result .stderr .decode ().rstrip (), file = report_file )
163162 print ('</stderr>' , file = report_file )
164163 print ('<code>' , file = report_file )
165- with open (input_path ) as fortran_file :
164+ with open (str ( input_path ) ) as fortran_file :
166165 print (fortran_file .read (), file = report_file )
167166 print ('</code>' , file = report_file )
168167 if isinstance (result , ET .Element ):
0 commit comments