From 5ad702cf1249ccfea0a9801c08327103732b8c24 Mon Sep 17 00:00:00 2001 From: JD Palomino Date: Wed, 10 Aug 2022 15:09:23 -0700 Subject: [PATCH 1/3] Adding test suite for python3.10 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index ba6b16a9..273dc0f6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: python python: - "3.9" + - "3.10" env: - TEST_RELEASE=false HYPER_FAST_PARSE=false From 28364740528a9925c84f9a347f046490143bcb03 Mon Sep 17 00:00:00 2001 From: JD Palomino Date: Wed, 10 Aug 2022 15:18:16 -0700 Subject: [PATCH 2/3] updating ubuntu dist --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 273dc0f6..66c29743 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: python - +dist: focal python: - "3.9" - "3.10" From a32875cbeed04c27a06d5d334351ccbd6d609dbf Mon Sep 17 00:00:00 2001 From: JD Palomino Date: Wed, 10 Aug 2022 15:21:54 -0700 Subject: [PATCH 3/3] wip --- .travis.yml | 2 +- hyper/http11/connection.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 66c29743..398b2e58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: python -dist: focal +dist: bionic python: - "3.9" - "3.10" diff --git a/hyper/http11/connection.py b/hyper/http11/connection.py index 43e5e805..136ed62b 100644 --- a/hyper/http11/connection.py +++ b/hyper/http11/connection.py @@ -11,7 +11,6 @@ import base64 from collections.abc import Iterable, Mapping -import collections from hyperframe.frame import SettingsFrame from .response import HTTP11Response @@ -294,7 +293,7 @@ def _send_body(self, body, body_type): 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)