File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -243,10 +243,10 @@ def _write_out_report(self,
243
243
f .write (separator + '\n ' )
244
244
for row_values in rows :
245
245
r = ("{:>{}}" * len (widths )).format (* itertools .chain (* zip (row_values , widths )))
246
- f .writelines (r + '\n ' )
246
+ f .write (r + '\n ' )
247
247
f .write (separator + '\n ' )
248
248
footer_str = ("{:>{}}" * len (widths )).format (* itertools .chain (* zip (footer , widths )))
249
- f .writelines (footer_str + '\n ' )
249
+ f .write (footer_str + '\n ' )
250
250
251
251
def _report_any_exprs (self ) -> None :
252
252
total_any = sum (num_any for num_any , _ in self .counts .values ())
Original file line number Diff line number Diff line change @@ -301,8 +301,8 @@ def write_file(path: str, contents: str) -> None:
301
301
old_contents = None
302
302
if old_contents != encoded_contents :
303
303
os .makedirs (os .path .dirname (path ), exist_ok = True )
304
- with open (path , 'wb' ) as f :
305
- f .write (encoded_contents )
304
+ with open (path , 'wb' ) as g :
305
+ g .write (encoded_contents )
306
306
307
307
# Fudge the mtime forward because otherwise when two builds happen close
308
308
# together (like in a test) setuptools might not realize the source is newer
You can’t perform that action at this time.
0 commit comments