This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients gregory.p.smith
Date 2016-04-08.17:44:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460137491.63.0.283583119898.issue26714@psf.upfronthosting.co.za>
In-reply-to
Content
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 "<stdin>", line 1, in <module>
AttributeError: __exit__
History
Date User Action Args
2016-04-08 17:44:51gregory.p.smithsetrecipients: + gregory.p.smith
2016-04-08 17:44:51gregory.p.smithsetmessageid: <1460137491.63.0.283583119898.issue26714@psf.upfronthosting.co.za>
2016-04-08 17:44:51gregory.p.smithlinkissue26714 messages
2016-04-08 17:44:51gregory.p.smithcreate