10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd4f032 commit 379f947Copy full SHA for 379f947
setup.py
@@ -93,8 +93,9 @@ def default_environment():
93
if (len(a.targets) == 1 and
94
isinstance(a.targets[0], ast.Name) and
95
a.targets[0].id == "__version__" and
96
- isinstance(a.value, ast.Str)):
97
- version = a.value.s
+ ((sys.version_info >= (3, 8) and isinstance(a.value, ast.Constant)) or
+ isinstance(a.value, ast.Str))):
98
+ version = a.value.value if sys.version_info >= (3, 8) else a.value.s
99
100
setup(name='html5lib',
101
version=version,
0 commit comments