1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Mon, 22 Dec 2025 10:35:01 +0100
Subject: Fix deprecated ast.Str usage
---
setup.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index f3d9f75..aba6f66 100644
--- a/setup.py
+++ b/setup.py
@@ -87,8 +87,8 @@ with open(join(here, "html5lib", "__init__.py"), "rb") as init_file:
if (len(a.targets) == 1 and
isinstance(a.targets[0], ast.Name) and
a.targets[0].id == "__version__" and
- isinstance(a.value, ast.Str)):
- version = a.value.s
+ isinstance(a.value, ast.Constant)):
+ version = str(a.value.value)
setup(name='html5lib',
version=version,
|