diff options
Diffstat (limited to 'urllib3/util/response.py')
-rw-r--r-- | urllib3/util/response.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/urllib3/util/response.py b/urllib3/util/response.py index 6695809..efb9e04 100644 --- a/urllib3/util/response.py +++ b/urllib3/util/response.py @@ -1,3 +1,5 @@ +from __future__ import absolute_import + from six.moves import http_client as httplib from ..exceptions import HeaderParsingError @@ -44,7 +46,7 @@ def assert_header_parsing(headers): # This will fail silently if we pass in the wrong kind of parameter. # To make debugging easier add an explicit check. if not isinstance(headers, httplib.HTTPMessage): - raise TypeError('expected httplib.Message, got {}.'.format( + raise TypeError('expected httplib.Message, got {0}.'.format( type(headers))) defects = getattr(headers, 'defects', None) |