From ff2635c8dd2726f9e12aebc35e799ffcc81ac292 Mon Sep 17 00:00:00 2001 From: Jet <38184875+jjshoots@users.noreply.github.com> Date: Fri, 14 Oct 2022 11:40:16 +0100 Subject: [PATCH] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 928596ff8..f5f07b954 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ def get_version(): """Gets the pettingzoo version.""" path = "gymnasium/version.py" with open(path) as file: - lines = file.readlines() + full_version = file.read() assert ( re.match(r'VERSION = "\d\.\d+\.\d+"\n', full_version).group(0) == full_version ), f"Unexpected version: {full_version}"