summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2007-08-04 03:34:03 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2007-08-04 03:34:03 (GMT)
commit4e7855d7fd5f9ef88125d439868e9afffef20276 (patch)
treecced0a8b0cdc14347b6e0175d1a97ee02fd9ab87 /Lib
parent0ee5eeb8ffb167d55a746c97c91558cf0e855c94 (diff)
downloadcpython-4e7855d7fd5f9ef88125d439868e9afffef20276.zip
cpython-4e7855d7fd5f9ef88125d439868e9afffef20276.tar.gz
cpython-4e7855d7fd5f9ef88125d439868e9afffef20276.tar.bz2
Use BytesIO instead of StringIO.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/httplib.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 76f7203..fe2f9ab 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -72,8 +72,6 @@ import mimetools
import socket
from urlparse import urlsplit
-from io import StringIO
-
__all__ = ["HTTP", "HTTPResponse", "HTTPConnection", "HTTPSConnection",
"HTTPException", "NotConnected", "UnknownProtocol",
"UnknownTransferEncoding", "UnimplementedFileMode",
@@ -411,7 +409,7 @@ class HTTPResponse:
self.length = None
self.chunked = 0
self.will_close = 1
- self.msg = HTTPMessage(StringIO())
+ self.msg = HTTPMessage(io.BytesIO())
return
self.msg = HTTPMessage(self.fp, 0)