Python 3.8 compiler now produces a SyntaxWarning when identity checks

(is and is not) are used with certain types of literals (e.g. strings,
numbers).
This commit is contained in:
Eran Davidovich 2021-11-25 09:03:27 +02:00
parent bb66bd921c
commit da17d22fe2
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ def run_or_die(args, die=True, **kwargs):
sys.stderr.flush()
ret = subprocess.run(args, text=True, **kwargs)
if ret.returncode is not 0:
if ret.returncode != 0:
print(f"CMD FAIL {ret.returncode}\t{args_readable}", file=sys.stderr)
out = ret.stdout if ret.stdout is not None else "<not captured>"