diff options
author | Fred Drake <fdrake@acm.org> | 2000-02-10 17:17:14 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-02-10 17:17:14 (GMT) |
commit | 13a2c279c504ae58c20baba5f0b3d1d6c0a85ed3 (patch) | |
tree | 6942aa091af39fe239eff68b0bf1292eea26da29 /Lib/httplib.py | |
parent | 857c4c36b962c6e74559e045c7fb43177dd5bcea (diff) | |
download | cpython-13a2c279c504ae58c20baba5f0b3d1d6c0a85ed3.zip cpython-13a2c279c504ae58c20baba5f0b3d1d6c0a85ed3.tar.gz cpython-13a2c279c504ae58c20baba5f0b3d1d6c0a85ed3.tar.bz2 |
Untabify to pass the -tt test.
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index fade694..a43adde 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -44,27 +44,27 @@ HTTPS_PORT = 443 class FakeSocket: def __init__(self, sock, ssl): - self.__sock = sock - self.__ssl = ssl - return - - def makefile(self, mode): # hopefully, never have to write - msgbuf = "" - while 1: - try: - msgbuf = msgbuf + self.__ssl.read() - except socket.sslerror, msg: - break - return StringIO(msgbuf) + self.__sock = sock + self.__ssl = ssl + return + + def makefile(self, mode): # hopefully, never have to write + msgbuf = "" + while 1: + try: + msgbuf = msgbuf + self.__ssl.read() + except socket.sslerror, msg: + break + return StringIO(msgbuf) def send(self, stuff, flags = 0): - return self.__ssl.write(stuff) + return self.__ssl.write(stuff) def recv(self, len = 1024, flags = 0): - return self.__ssl.read(len) + return self.__ssl.read(len) def __getattr__(self, attr): - return getattr(self.__sock, attr) + return getattr(self.__sock, attr) class HTTP: """This class manages a connection to an HTTP server.""" |