From bcc3d99cc10561fd40f8c1eba585a9cf4f8bd123 Mon Sep 17 00:00:00 2001 From: Yuto Takano Date: Fri, 6 Aug 2021 23:14:58 +0100 Subject: [PATCH] Fix compatibiliy with Python 3.5 on the CI Signed-off-by: Yuto Takano --- tests/scripts/check-names.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/scripts/check-names.py b/tests/scripts/check-names.py index 786356990..b1835c680 100755 --- a/tests/scripts/check-names.py +++ b/tests/scripts/check-names.py @@ -471,7 +471,7 @@ class NameCheck(): # as exceptions and logged. subprocess.run( ["python3", "scripts/config.py", "full"], - encoding=sys.stdout.encoding, + universal_newlines=True, check=True ) my_environment = os.environ.copy() @@ -479,7 +479,7 @@ class NameCheck(): subprocess.run( ["make", "clean", "lib"], env=my_environment, - encoding=sys.stdout.encoding, + universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=True @@ -493,7 +493,7 @@ class NameCheck(): subprocess.run( ["make", "clean"], - encoding=sys.stdout.encoding, + universal_newlines=True, check=True ) except subprocess.CalledProcessError as error: @@ -528,7 +528,7 @@ class NameCheck(): for lib in object_files: nm_output += subprocess.run( ["nm", "-og", lib], - encoding=sys.stdout.encoding, + universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=True