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}"