MCPcopy Index your code
hub / github.com/python/cpython / data_received

Method data_received

Lib/test/test_asyncio/test_windows_events.py:32–36  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

30 self.trans = trans
31
32 def data_received(self, data):
33 self.buf.append(data)
34 if b'\n' in data:
35 self.trans.write(b''.join(self.buf).upper())
36 self.trans.close()
37
38
39class WindowsEventsTestCase(test_utils.TestCase):

Callers

nothing calls this directly

Calls 5

appendMethod · 0.45
writeMethod · 0.45
upperMethod · 0.45
joinMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected