Name
read_until
Synopsis
t
.read_until(expected
,timeout
=None)
Reads data from the connection until it
encounters string expected
, or until
timeout
seconds elapse when
timeout
is not None
.
Returns whatever data is available at that time, or possibly the
empty string ''. Raises
EOFError
if the connection is closed and no data
is available.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.