Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-hyper for openSUSE:Factory checked in at 2022-01-10 23:53:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-hyper (Old) and /work/SRC/openSUSE:Factory/.python-hyper.new.1892 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hyper" Mon Jan 10 23:53:04 2022 rev:11 rq:945232 version:0.7.0+git89.b77e758 Changes: -------- --- /work/SRC/openSUSE:Factory/python-hyper/python-hyper.changes 2022-01-03 10:49:38.163585425 +0100 +++ /work/SRC/openSUSE:Factory/.python-hyper.new.1892/python-hyper.changes 2022-01-10 23:53:13.952784837 +0100 @@ -1,0 +2,5 @@ +Sun Jan 9 03:34:01 UTC 2022 - John Vandenberg <[email protected]> + +- Add py310.patch to fix Python 3.10 builds + +------------------------------------------------------------------- New: ---- py310.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-hyper.spec ++++++ --- /var/tmp/diff_new_pack.IzXzZ6/_old 2022-01-10 23:53:15.316786032 +0100 +++ /var/tmp/diff_new_pack.IzXzZ6/_new 2022-01-10 23:53:15.320786036 +0100 @@ -33,6 +33,7 @@ Patch3: tests-mark-rpmfail_getaddrinfo.patch Patch4: fix-j1-tests.patch Patch5: http20.patch +Patch6: py310.patch BuildRequires: %{python_module brotlipy >= 0.7.0} BuildRequires: %{python_module h2 > 2.5.0} BuildRequires: %{python_module hyperframe >= 3.2} ++++++ py310.patch ++++++ commit d16a94e6a64cf2d0ff9bf3e926b4e08a383faae2 Author: John Vandenberg <[email protected]> Date: Sun Jan 9 11:31:02 2022 +0800 Use collections.abc diff --git a/hyper/common/headers.py b/hyper/common/headers.py index 655a591..6454f55 100644 --- a/hyper/common/headers.py +++ b/hyper/common/headers.py @@ -10,7 +10,7 @@ import collections from hyper.common.util import to_bytestring, to_bytestring_tuple -class HTTPHeaderMap(collections.MutableMapping): +class HTTPHeaderMap(collections.abc.MutableMapping): """ A structure that contains HTTP headers. diff --git a/hyper/http11/connection.py b/hyper/http11/connection.py index 4311d30..3405286 100644 --- a/hyper/http11/connection.py +++ b/hyper/http11/connection.py @@ -10,7 +10,7 @@ import os import socket import base64 -from collections import Iterable, Mapping +from collections.abc import Iterable, Mapping import collections from hyperframe.frame import SettingsFrame @@ -390,7 +390,7 @@ class HTTP11Connection(object): return # Iterables that set a specific content length. - elif isinstance(body, collections.Iterable): + elif isinstance(body, Iterable): for item in body: try: self._sock.send(item)
