aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-html5lib/files/patch-setup.py
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
committerLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
commit2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch)
tree25f0138e1af8902b92dacc8cce09b267447c17db /www/py-html5lib/files/patch-setup.py
parentf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff)
parent1a30da80670973368b399f2b01fe9c04b91a1273 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'www/py-html5lib/files/patch-setup.py')
-rw-r--r--www/py-html5lib/files/patch-setup.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/py-html5lib/files/patch-setup.py b/www/py-html5lib/files/patch-setup.py
new file mode 100644
index 000000000000..1dea77f968f7
--- /dev/null
+++ b/www/py-html5lib/files/patch-setup.py
@@ -0,0 +1,13 @@
+--- setup.py.orig 2020-06-22 23:23:02 UTC
++++ setup.py
+@@ -90,8 +90,8 @@ with open(join(here, "html5lib", "__init__.py"), "rb")
+ 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 = a.value
+
+ setup(name='html5lib',
+ version=version,