Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ receive
Method
receive
example_code/item_076.py:297–301 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
295
await self.writer.drain()
# Changed
296
297
async
def
receive(self):
298
line = await self.reader.readline()
# Changed
299
if
not line:
300
raise
EOFError(
"Connection closed"
)
301
return
line[:-1].decode()
302
303
304
print(
"Example 17"
)
Callers
nothing calls this directly
Calls
1
EOFError
Class · 0.85
Tested by
no test coverage detected