From eb3be68b2ad0ff4ebf9627285cc6f4fdb12dc206 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Wed, 27 Jul 2022 11:04:50 +0800 Subject: [PATCH] ci: fix syntax error --- tools/ci/check_public_headers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ci/check_public_headers.py b/tools/ci/check_public_headers.py index 7816d2e180..5d1e69b109 100644 --- a/tools/ci/check_public_headers.py +++ b/tools/ci/check_public_headers.py @@ -60,8 +60,8 @@ def exec_cmd(what: List, out_file: Union['tempfile._TemporaryFileWrapper[bytes]' p = subprocess.Popen(what, stdin=subprocess.PIPE, stdout=out_file, stderr=subprocess.PIPE) output_b, err_b = p.communicate() rc = p.returncode - output: str = output_b.decode('utf-8') if output is not None else '' - err: str = err_b.decode('utf-8') if err is not None else '' + output: str = output_b.decode('utf-8') if output_b is not None else '' + err: str = err_b.decode('utf-8') if err_b is not None else '' return rc, output, err, ' '.join(what)