From 2e576f5aec1f8f23f07001e2eb3db9276851a4fc Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 24 Apr 2017 09:05:00 +0300 Subject: bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263) --- Lib/http/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/http/client.py') diff --git a/Lib/http/client.py b/Lib/http/client.py index 0234199dfa..0f660710a7 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -74,7 +74,7 @@ import http import io import re import socket -import collections +import collections.abc from urllib.parse import urlsplit # HTTPMessage, parse_headers(), and the HTTP status code constants are @@ -977,7 +977,7 @@ class HTTPConnection: try: self.sock.sendall(data) except TypeError: - if isinstance(data, collections.Iterable): + if isinstance(data, collections.abc.Iterable): for d in data: self.sock.sendall(d) else: -- cgit v1.2.1