summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-29 01:53:26 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-29 01:53:26 (GMT)
commit70d0ddab53208ee99af56610bda7302c4940e1c8 (patch)
tree3d21f6d7644fb68271bce50d3db46f173fb79603 /Lib/httplib.py
parent7436a063757bf19e7f8483c2d60349e227f33baf (diff)
downloadcpython-70d0ddab53208ee99af56610bda7302c4940e1c8.zip
cpython-70d0ddab53208ee99af56610bda7302c4940e1c8.tar.gz
cpython-70d0ddab53208ee99af56610bda7302c4940e1c8.tar.bz2
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 9cdfd2a..9887540 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