Fix more pylint warnings
This commit is contained in:
parent
0ca6d17485
commit
af6119feb5
3 changed files with 3 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ def export_io_graph(disk, log_dir, read_rates):
|
|||
y_range = (math.ceil(max_rate/100)*100) + 200
|
||||
|
||||
# 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):
|
||||
percent = (i+1) / len(read_rates) * 100
|
||||
rate = int(rate / (1024**2))
|
||||
|
|
|
|||
|
|
@ -414,7 +414,7 @@ class State():
|
|||
exe.run_program(cmd, check=False, shell=True)
|
||||
|
||||
# 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)))
|
||||
|
||||
# SMC
|
||||
|
|
|
|||
|
|
@ -1102,7 +1102,7 @@ def run_emsisoft_cmd_scan():
|
|||
whitelist_path = log_path.with_suffix('.wl')
|
||||
|
||||
# Create whitelist
|
||||
whitelist_path.write_text(WHITELIST)
|
||||
whitelist_path.write_text(WHITELIST, encoding='utf-8')
|
||||
|
||||
# Run Scan
|
||||
cmd = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue