diff --git a/.travis.yml b/.travis.yml index ba6b16a9..398b2e58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,8 @@ language: python - +dist: bionic python: - "3.9" + - "3.10" env: - TEST_RELEASE=false HYPER_FAST_PARSE=false 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)