public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python3-openid] epel10: Python 3.5 compatibility
@ 2026-10-30 21:38
0 siblings, 0 replies; only message in thread
From: @ 2026-10-30 21:38 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python3-openid
Branch : epel10
Commit : bbc36f7c91b8d5652f484024bade36bcc417de5e
Author : Jakub Dorňák <jdornak@redhat.com>
Date : 2015-11-18T11:12:37+01:00
Stats : +78/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python3-openid/c/bbc36f7c91b8d5652f484024bade36bcc417de5e?branch=epel10
Log:
Python 3.5 compatibility
---
diff --git a/python3-openid-HTMLParseError.patch b/python3-openid-HTMLParseError.patch
new file mode 100644
index 0000000..bd18341
--- /dev/null
+++ b/python3-openid-HTMLParseError.patch
@@ -0,0 +1,76 @@
+commit beff8decafa9cab32d6b621bd8a6827f611001da
+Author: Rami Chowdhury <rami.chowdhury@gmail.com>
+Date: Sun Nov 8 16:23:29 2015 -0500
+
+ Remove unused strict argument. Closes #16
+---
+ openid/yadis/parsehtml.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/openid/yadis/parsehtml.py b/openid/yadis/parsehtml.py
+index 2ab232d..dc91eb9 100644
+--- a/openid/yadis/parsehtml.py
++++ b/openid/yadis/parsehtml.py
+@@ -96,7 +96,7 @@ class YadisHTMLParser(HTMLParser):
+ TERMINATED = 4
+
+ def __init__(self):
+- super(YadisHTMLParser, self).__init__(strict=False)
++ super(YadisHTMLParser, self).__init__()
+ self.phase = self.TOP
+
+ def _terminate(self):
+
+commit 2d85c821db456d5e5845f2ca2961bd3f180d0b9d
+Author: blazaid <alberto.da@gmail.com>
+Date: Tue Sep 15 20:39:52 2015 +0200
+
+ #14 Import error due release 3.5 of Python
+
+ HTMLParserError is no longer thrown by HTMLParser and thus was removed. The dependency and except blocks were removed.
+---
+ openid/test/test_parsehtml.py | 3 ---
+ openid/yadis/parsehtml.py | 6 +-----
+ 2 files changed, 1 insertion(+), 8 deletions(-)
+
+diff --git a/openid/test/test_parsehtml.py b/openid/test/test_parsehtml.py
+index b3c6475..387ddc5 100644
+--- a/openid/test/test_parsehtml.py
++++ b/openid/test/test_parsehtml.py
+@@ -1,4 +1,3 @@
+-from html.parser import HTMLParseError
+ import os.path
+ import unittest
+ import sys
+@@ -33,8 +32,6 @@ class _TestCase(unittest.TestCase):
+
+ msg = "%r != %r for case %s" % (found, self.expected, self.case)
+ self.assertEqual(found, self.expected, msg)
+- except HTMLParseError:
+- self.assertTrue(self.expected == 'None', (self.case, self.expected))
+ else:
+ self.assertTrue(self.expected == 'EOF', (self.case, self.expected))
+
+diff --git a/openid/yadis/parsehtml.py b/openid/yadis/parsehtml.py
+index 42cd91e..2ab232d 100644
+--- a/openid/yadis/parsehtml.py
++++ b/openid/yadis/parsehtml.py
+@@ -1,6 +1,6 @@
+ __all__ = ['findHTMLMeta', 'MetaNotFound']
+
+-from html.parser import HTMLParser, HTMLParseError
++from html.parser import HTMLParser
+ import html.entities
+ import re
+
+@@ -187,10 +187,6 @@ def findHTMLMeta(stream):
+ chunks.append(chunk)
+ try:
+ parser.feed(chunk)
+- except HTMLParseError as why:
+- # HTML parse error, so bail
+- chunks.append(stream.read())
+- break
+ except ParseDone as why:
+ uri = why.args[0]
+ if uri is None:
diff --git a/python3-openid.spec b/python3-openid.spec
index 8fd59dd..8292f09 100644
--- a/python3-openid.spec
+++ b/python3-openid.spec
@@ -7,6 +7,7 @@ License: ASL 2.0
URL: https://github.com/necaris/python3-openid
Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
Patch0: python3-openid-shebang.patch
+Patch1: python3-openid-HTMLParseError.patch
BuildArch: noarch
@@ -24,6 +25,7 @@ including cleanups and updates to the code in general.
%prep
%setup -q
%patch0 -p 1
+%patch1 -p 1
%build
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-30 21:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 21:38 [rpms/python3-openid] epel10: Python 3.5 compatibility
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox