mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-02 23:32:42 +00:00
Merge branch 'fix/flake8_v5_warnings' into 'master'
Tools: Fix flake8 version 5 warnings See merge request espressif/esp-idf!19488
This commit is contained in:
@@ -51,8 +51,8 @@ def main(): # type: () -> None
|
||||
# pass the extra_gdbinit_file if the build is reproducible
|
||||
kwargs['extra_gdbinit_file'] = get_prefix_map_gdbinit_path(kwargs['prog'])
|
||||
|
||||
del(kwargs['debug'])
|
||||
del(kwargs['operation'])
|
||||
del kwargs['debug']
|
||||
del kwargs['operation']
|
||||
|
||||
espcoredump = CoreDump(**kwargs)
|
||||
temp_core_files = None
|
||||
|
||||
@@ -107,7 +107,7 @@ class CertificateBundle:
|
||||
if start is True:
|
||||
crt += strg
|
||||
|
||||
if(count == 0):
|
||||
if count == 0:
|
||||
raise InputError('No certificate found')
|
||||
|
||||
status('Successfully added %d certificates' % count)
|
||||
|
||||
@@ -167,7 +167,7 @@ class SpiffsObjLuPage(SpiffsPage):
|
||||
img += struct.pack(SpiffsPage._endianness_dict[self.build_config.endianness] +
|
||||
SpiffsPage._len_dict[self.build_config.obj_id_len], obj_id)
|
||||
|
||||
assert(len(img) <= self.build_config.page_size)
|
||||
assert len(img) <= self.build_config.page_size
|
||||
|
||||
img += b'\xFF' * (self.build_config.page_size - len(img))
|
||||
|
||||
@@ -249,7 +249,7 @@ class SpiffsObjIndexPage(SpiffsObjPageWithIdx):
|
||||
img += struct.pack(SpiffsPage._endianness_dict[self.build_config.endianness] +
|
||||
SpiffsPage._len_dict[self.build_config.page_ix_len], page)
|
||||
|
||||
assert(len(img) <= self.build_config.page_size)
|
||||
assert len(img) <= self.build_config.page_size
|
||||
|
||||
img += b'\xFF' * (self.build_config.page_size - len(img))
|
||||
|
||||
@@ -275,7 +275,7 @@ class SpiffsObjDataPage(SpiffsObjPageWithIdx):
|
||||
|
||||
img += self.contents
|
||||
|
||||
assert(len(img) <= self.build_config.page_size)
|
||||
assert len(img) <= self.build_config.page_size
|
||||
|
||||
img += b'\xFF' * (self.build_config.page_size - len(img))
|
||||
|
||||
@@ -374,7 +374,7 @@ class SpiffsBlock(object):
|
||||
for page in self.pages:
|
||||
img += page.to_binary()
|
||||
|
||||
assert(len(img) <= self.build_config.block_size)
|
||||
assert len(img) <= self.build_config.block_size
|
||||
|
||||
img += b'\xFF' * (self.build_config.block_size - len(img))
|
||||
return img
|
||||
|
||||
Reference in New Issue
Block a user