Commit e3ddcaf
committed
Don't enforce and/or assume ReadUntil() responses have a LF suffix
The original telnetlib based approach using read_until() worked based on the
fact that the string returned by read_until() always had a trailing LF (\n).
This isn't the case with the way the response is returned by the raw socket
based implementation (ie. using string.partition()), so don't add a trailing
LF to the returned string anymore and fix up all occurances comparing with
a string containing a trailing LF.
(On a side note, it is simply wrong to statically append a LF where it would
rather be correct to append the separator, but well...)1 parent 2b7dbba commit e3ddcaf
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments