diff options
author | Guido van Rossum <guido@python.org> | 2007-08-29 01:53:26 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-29 01:53:26 +0000 |
commit | 70d0ddab53208ee99af56610bda7302c4940e1c8 (patch) | |
tree | 3d21f6d7644fb68271bce50d3db46f173fb79603 /Lib/httplib.py | |
parent | 7436a063757bf19e7f8483c2d60349e227f33baf (diff) | |
download | cpython-git-70d0ddab53208ee99af56610bda7302c4940e1c8.tar.gz |
Make test_urllib be strict about str/bytes.
(One change to httplib.py, but not enough for test_httplib.)
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index 9cdfd2a5e8..98875400ec 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -373,7 +373,7 @@ class HTTPResponse: # Assume it's a Simple-Response from an 0.9 server. # We have to convert the first line back to raw bytes # because self.fp.readline() needs to return bytes. - self.fp = LineAndFileWrapper(bytes(line), self.fp) + self.fp = LineAndFileWrapper(bytes(line, "ascii"), self.fp) return "HTTP/0.9", 200, "" # The status code is a three-digit number |