LFS(Linux From Scratch) 統合スレ 3 [無断転載禁止]©2ch.net (257レス)
1-

244: 10/18(土)12:02 ID:qIuGx9w9(1) AAS
python-3.14

--- html5lib-1.1/setup.py 2020-06-23 08:23:02.000000000 +0900
+++ html5lib-1.1dev/setup.py 2025-10-18 11:57:37.306698033 +0900
@@ -89,9 +89,14 @@
for a in assignments:
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
+ a.targets[0].id == "__version__"):
+ if hasattr(ast, "Str") and isinstance(a.value, ast.Str):
+ version = a.value.s
+ elif (hasattr(ast, "Constant")
+ and isinstance(a.value, ast.Constant)
+ and isinstance(a.value.value, str)):
+ version = a.value.value
+assert version is not None

setup(name='html5lib',
version=version,
1-
あと 13 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.016s