Python lint: Use flake8 --extend-ignore instead of --ignore (#1498)

This commit is contained in:
Christian Clauss
2024-12-07 00:20:31 +01:00
committed by GitHub
parent b644e2e6bb
commit 095c488961
9 changed files with 27 additions and 68 deletions

View File

@@ -27,13 +27,13 @@ else:
def listify(x):
if type(x) == list or type(x) == tuple:
if type(x) in {list, tuple}:
return x
return [x]
def check_call(cmd, **args):
if type(cmd) != list:
if type(cmd) is not list:
cmd = cmd.split()
print('running: %s' % cmd)
args['universal_newlines'] = True
@@ -115,7 +115,7 @@ def do_lib_building(emcc):
def run_emsdk(cmd):
if type(cmd) != list:
if type(cmd) is not list:
cmd = cmd.split()
check_call([emsdk] + cmd)