diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2021-08-31 19:32:59 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2021-08-31 19:32:59 -0400 |
commit | 72b8043524620f1bb48259002d777b28680c9008 (patch) | |
tree | 70aff1ce2562a1d446fcfc5e559084f2c949dcee /setup.py | |
parent | 8c231fb7b7d60ded06521023456fd303cda8c78d (diff) | |
download | sploit-72b8043524620f1bb48259002d777b28680c9008.tar.gz sploit-72b8043524620f1bb48259002d777b28680c9008.zip |
Add readuntil() and readlineuntil() to Comms
Both new functions check the input for a predicate and keep reading
until the predicate is true.
readuntil() will consume input byte by byte and use the entire string
read to check the predicate. It will then return that entire string.
readlineuntil() consumes input line by line and only uses the last line
to check the predicate. The line that satisfies the predicate is all
that is returned.
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions