[issue26714] telnetlib.Telnet should act as a context manager

2016-04-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: hah, i should've tested this in an up to date client. :) -- ___ Python tracker ___ ___ Python-bugs

[issue26714] telnetlib.Telnet should act as a context manager

2016-04-08 Thread SilentGhost
SilentGhost added the comment: issue25485 seem to have addressed this. -- nosy: +SilentGhost resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker _

[issue26714] telnetlib.Telnet should act as a context manager

2016-04-08 Thread Gregory P. Smith
New submission from Gregory P. Smith: Telnet instances should support the context manager protocol so they can be used in with statements. >>> import telnetlib >>> with telnetlib.Telnet('192.168.86.7') as tn: ... pass ... Traceback (most recent call last): File "", line 1, in AttributeErr