From 85a40529d4fda2e4eb59c9bd619aabe2f55851e3 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Sat, 7 Jan 2023 08:41:18 -0800 Subject: More removal of code specific for Python 2 --- tests/test_util.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test_util.py b/tests/test_util.py index a945c29..56835a0 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -34,10 +34,7 @@ def cpp_args(args=[]): return args def _bytes2str(b): - if sys.version_info[0] == 3: - return b.decode('latin-1') - else: - return b + return b.decode('latin-1') def run_exe(exe_path, args=[], echo=False): """ Runs the given executable as a subprocess, given the -- cgit v1.2.1