Ivan Tomilov added the comment:
I see, thanks for the clarification.
But in my OS X the things are different and I spent about 1 hour trying
this code to take off.
Maybe it's better to change this code to avoid spending time for such
subtle bugs? Say:
tn.read_until(b"Password:"
New submission from Ivan Tomilov:
The code sample on page https://docs.python.org/3/library/telnetlib.html is a
little confusing. The extra space in string "Password: " before the second
quote basically hangs the example program when you try to run it.
Please, check my answe