Helpviewer/Network/NetworkReply.py

changeset 278
c93823b96faa
parent 168
3383117f894b
child 464
a2b1d1770ef0
child 642
9f31d84cb2b1
equal deleted inserted replaced
276:4a7e25ee406c 278:c93823b96faa
56 def readData(self, maxlen): 56 def readData(self, maxlen):
57 """ 57 """
58 Protected method to retrieve data from the reply object. 58 Protected method to retrieve data from the reply object.
59 59
60 @param maxlen maximum number of bytes to read (integer) 60 @param maxlen maximum number of bytes to read (integer)
61 @return string containing the data (string) 61 @return string containing the data (bytes)
62 """ 62 """
63 len_ = min(maxlen, self.__data.length()) 63 len_ = min(maxlen, self.__data.length())
64 buffer = bytes(self.__data[:len_]) 64 buffer = bytes(self.__data[:len_])
65 self.__data.remove(0, len_) 65 self.__data.remove(0, len_)
66 if self.__data.length() == 0: 66 if self.__data.length() == 0:

eric ide

mercurial