Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98779e0 commit 11892ecCopy full SHA for 11892ec
1 file changed
Lib/httplib.py
@@ -910,6 +910,31 @@ def readline(self):
910
self._buf = all[i:]
911
return line
912
913
+ def readlines(self, sizehint=0):
914
+ total = 0
915
+ list = []
916
+ while True:
917
+ line = self.readline()
918
+ if not line:
919
+ break
920
+ list.append(line)
921
+ total += len(line)
922
+ if sizehint and total >= sizehint:
923
924
+ return list
925
+
926
+ def fileno(self):
927
+ return self._sock.fileno()
928
929
+ def __iter__(self):
930
+ return self
931
932
+ def next(self):
933
934
935
+ raise StopIteration
936
+ return line
937
938
class FakeSocket(SharedSocketClient):
939
940
class _closedsocket:
0 commit comments