From c6da71433a0756abc93c2d1add3f702b89ffd177 Mon Sep 17 00:00:00 2001 From: Paul Hobson Date: Mon, 7 Oct 2024 22:06:56 -0700 Subject: [PATCH] remove check for python3 --- wqio/tests/helpers.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/wqio/tests/helpers.py b/wqio/tests/helpers.py index 5869f1c..75bd186 100644 --- a/wqio/tests/helpers.py +++ b/wqio/tests/helpers.py @@ -244,15 +244,8 @@ def _show_system_info(): # pragma: no cover def checkdep_tex(): # pragma: no cover - if sys.version_info[0] >= 3: - - def byte2str(b): - return b.decode("ascii") - - else: # pragma: no cover - - def byte2str(b): - return b + def byte2str(b): + return b.decode("ascii") try: s = subprocess.Popen(["tex", "-version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)