MCPcopy Create free account
hub / github.com/python/cpython / more

Method more

Lib/test/support/asynchat.py:284–292  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

282 self.buffer_size = buffer_size
283
284 def more(self):
285 if len(self.data) > self.buffer_size:
286 result = self.data[:self.buffer_size]
287 self.data = self.data[self.buffer_size:]
288 return result
289 else:
290 result = self.data
291 self.data = b''
292 return result
293
294
295# Given 'haystack', see if any prefix of 'needle' is at its end. This

Callers 1

initiate_sendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected