Fix more pylint warnings

This commit is contained in:
2Shirt 2021-09-30 17:48:10 -06:00
parent 0ca6d17485
commit af6119feb5
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
3 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ def export_io_graph(disk, log_dir, read_rates):
y_range = (math.ceil(max_rate/100)*100) + 200 y_range = (math.ceil(max_rate/100)*100) + 200
# Save plot data to file for Gnuplot # Save plot data to file for Gnuplot
with open(plot_data, 'w') as _f: with open(plot_data, 'w', encoding='utf-8') as _f:
for i, rate in enumerate(read_rates): for i, rate in enumerate(read_rates):
percent = (i+1) / len(read_rates) * 100 percent = (i+1) / len(read_rates) * 100
rate = int(rate / (1024**2)) rate = int(rate / (1024**2))

View file

@ -414,7 +414,7 @@ class State():
exe.run_program(cmd, check=False, shell=True) exe.run_program(cmd, check=False, shell=True)
# osTicket # osTicket
with open(f'{debug_dir}/osTicket.report', 'a') as _f: with open(f'{debug_dir}/osTicket.report', 'a', encoding='utf-8') as _f:
_f.write('\n'.join(debug.generate_object_report(self.ost))) _f.write('\n'.join(debug.generate_object_report(self.ost)))
# SMC # SMC

View file

@ -1102,7 +1102,7 @@ def run_emsisoft_cmd_scan():
whitelist_path = log_path.with_suffix('.wl') whitelist_path = log_path.with_suffix('.wl')
# Create whitelist # Create whitelist
whitelist_path.write_text(WHITELIST) whitelist_path.write_text(WHITELIST, encoding='utf-8')
# Run Scan # Run Scan
cmd = [ cmd = [