Skip to content

Commit 9324c71

Browse files
WilliamLearaSae86
authored andcommitted
fix for flake8 rule E202
This commit fixes all the E202 errors. They were found by running "flake8 ." from the root directory. This is an error defined by "pycodestyle", and has no functional impact to the source. This is simply fixing whitespace as defined by CHIPSEC's .flake8 configuration. background: https://www.flake8rules.com/rules/E202.html https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes:~:text=whitespace%20after%20%E2%80%98(%E2%80%99-,E202,-whitespace%20before%20%E2%80%98)%E2%80%99 versions: flake8 v7.2.0, python v3.12.6 Signed-off-by: William Leara <william.leara@dell.com>
1 parent 692eed5 commit 9324c71

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

chipsec/utilcmd/uefi_cmd.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ def nvram(self):
297297

298298
_orig_logname = self.logger.LOG_FILE_NAME
299299
self.logger.set_log_file((self.romfilename + '.nv.lst'), False)
300-
parse_EFI_variables(self.romfilename, rom, authvars, self.fwtype )
301-
self.logger.set_log_file(_orig_logname )
300+
parse_EFI_variables(self.romfilename, rom, authvars, self.fwtype)
301+
self.logger.set_log_file(_orig_logname)
302302

303303
def nvram_auth(self):
304304
authvars = 1
@@ -314,8 +314,8 @@ def nvram_auth(self):
314314

315315
_orig_logname = self.logger.LOG_FILE_NAME
316316
self.logger.set_log_file((self.romfilename + '.nv.lst'), False)
317-
parse_EFI_variables(self.romfilename, rom, authvars, self.fwtype )
318-
self.logger.set_log_file(_orig_logname )
317+
parse_EFI_variables(self.romfilename, rom, authvars, self.fwtype)
318+
self.logger.set_log_file(_orig_logname)
319319

320320
def decode(self):
321321
if not os.path.exists(self.filename):
@@ -335,7 +335,7 @@ def decode(self):
335335
ftypes.append(inv_filetypes[mtype])
336336
break
337337
decode_uefi_region(cur_dir, self.filename, self.fwtype, ftypes)
338-
self.logger.set_log_file(_orig_logname )
338+
self.logger.set_log_file(_orig_logname)
339339

340340
def keys(self):
341341
if not os.path.exists(self.filename):

tests/helpers/test_windowshelper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def tearDownClass(cls):
9797
b'',
9898
(0x22e034, b'\x00\x00\x00\x00:\x00\x00\x00'):
9999
b'\x01\x00\x00\x00\x00\x00\x00\x00',
100-
(0x22e030, b'\x00\x00\x00\x00:\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00' ):
100+
(0x22e030, b'\x00\x00\x00\x00:\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00'):
101101
b'',
102102
(0x22e040, b'\x00\x00\x00\x00\x01'):
103103
b'W\x00\xb0\x1f\xeav\x04\xf8\xff\xff\xb0\xbf0\x03\x00\x00\x00\x00',

0 commit comments

Comments
 (0)