192 if self.__content.size(): |
192 if self.__content.size(): |
193 len_ = min(maxlen, self.__content.size()) |
193 len_ = min(maxlen, self.__content.size()) |
194 buffer = bytes(self.__content[:len_]) |
194 buffer = bytes(self.__content[:len_]) |
195 self.__content.remove(0, len_) |
195 self.__content.remove(0, len_) |
196 return buffer |
196 return buffer |
|
197 else: |
|
198 return b"" |
197 |
199 |
198 def __doFtpCommands(self): |
200 def __doFtpCommands(self): |
199 """ |
201 """ |
200 Private slot doing the sequence of FTP commands to get the requested |
202 Private slot doing the sequence of FTP commands to get the requested |
201 result. |
203 result. |