[issue28661] Fix code example in Python 3.5 telnetlib documentation

2016-11-10 Thread Ivan Tomilov
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:"

[issue28661] Fix code example in Python 3.5 telnetlib documentation

2016-11-10 Thread Ivan Tomilov
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