summaryrefslogtreecommitdiffstats
path: root/Lib/telnetlib.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-18035: telnetlib: select.error doesn't have an errno attribute (#5044)Segev Finer2017-12-291-2/+2
| | | | select.error doesn't have an errno attribute so access the errno by indexing instead.
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-2/+3
| | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* Fixes Issue #17200: telnetlib's read_until and expect timeout was broken by theGregory P. Smith2013-12-111-2/+5
| | | | | | fix to Issue #14635 in Python 2.7.4 to be interpreted as milliseconds instead of seconds when the platform supports select.poll (ie: everywhere). It is now treated as seconds once again.
* Fixes Issue #14635: telnetlib will use poll() rather than select() when possibleGregory P. Smith2012-07-161-0/+130
| | | | | | to avoid failing due to the select() file descriptor limit. Contributed by Akintayo Holder and under the Google contributor agreement.
* Merged revisions 87230 via svnmerge fromR. David Murray2010-12-141-1/+1
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87230 | r.david.murray | 2010-12-14 09:16:20 -0500 (Tue, 14 Dec 2010) | 7 lines #10695: use %s not %d so that a string 'port' does not cause a debug traceback Passing the port as a string value works fine in regular mode, but if you turned debug on it would throw an error trying to print the port number, which is surprising and confusing. ........
* Fixed the semantic of timeout for socket.create_connection andFacundo Batista2008-05-291-9/+7
| | | | | | all the upper level libraries that use it, including urllib2. Added and fixed some tests, and changed docs correspondingly. Thanks to John J Lee for the patch and the pusing, :)
* Added timout parameter to telnetlib.Telnet. Also createdFacundo Batista2007-03-291-18/+8
| | | | | test_telnetlib.py with a basic test and timeout ones. Docs are also updated.
* Patch #825417: Fix timeout processing in expect,Martin v. Löwis2006-07-031-1/+15
| | | | read_until. Will backport to 2.4.
* Fix a couple of strings that were no-ops. urllib.open_file was a docstringNeal Norwitz2006-04-091-1/+1
| | | | in 2.4, so put it back. The string in telnetlib looks like a comment.
* Quote docstring with r"" to keep '\r\n' in example code.Hye-Shik Chang2005-09-071-1/+1
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-2/+2
| | | | From SF patch #852334.
* Get rid of many apply() calls.Guido van Rossum2003-02-271-1/+1
|
* Whitespace normalization.Tim Peters2002-11-091-5/+5
|
* Patch #625823: Add symbolic constants for more commands.Martin v. Löwis2002-11-041-2/+13
|
* Patch #630829: Don't block on IAC, process suboptions.Martin v. Löwis2002-11-041-31/+82
|
* Replaced boolean tests with is None.Raymond Hettinger2002-06-021-1/+1
|
* SF 554073. Fix typo in error reporting of unrecognized characterGuido van Rossum2002-05-131-1/+1
| | | | following IAC. Bugfix candidate if anyone cares.
* The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.Martin v. Löwis2002-02-161-3/+3
| | | | | Replaces calls to socket.send() (which isn't guaranteed to send all data) with the new socket.sendall() method.
* Only close sockets if they have been created. Reported by Blake Winton.Martin v. Löwis2001-10-071-1/+2
|
* Patch #416079: fix the debug string output when receiving telnet commands.Martin v. Löwis2001-09-061-5/+82
| | | | | | added all the telnet options known to arpa/telnet.h added all the options registered with IANA as of today added the possibility for the user to have it's own option negotiation callback
* Initialize msg to avoid unbound locals.Martin v. Löwis2001-07-311-0/+1
|
* Untabify IPv6 changes.Martin v. Löwis2001-07-261-11/+11
|
* Patch #401196: Use getaddrinfo and AF_INET6 in TCP servers and clients.Martin v. Löwis2001-07-241-2/+12
|
* final round of __all__ lists (I hope) - skipped urllib2 because Moshe may beSkip Montanaro2001-03-011-0/+2
| | | | giving it a slight facelift
* String method conversion.Eric S. Raymond2001-02-091-4/+3
|
* Whitespace normalization.Tim Peters2001-01-151-3/+3
|
* Caolan McNamara:Guido van Rossum2000-05-021-0/+1
| | | | | | | telnetlib is unable to connect to a few telnet daemons because of improper IAC handling, heres an attached oneliner to reject WILL messages which will allow many more telnet daemons to work with it, namely FreeBSD.
* Added mt_interact() -- multithreaded version of interact().Guido van Rossum1998-12-231-0/+26
| | | | | interact() automatically uses this on Windows (where the single-threaded version doesn't work).
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-294/+294
|
* Added debug statements to report data actually sent and received onGuido van Rossum1998-02-191-0/+2
| | | | the socket.
* Moved things around a bit in interact(), so outout is processed beforeGuido van Rossum1997-12-291-4/+5
| | | | | | input. When an EOF is read, break out of the loop instead of (by default) writing an empty line (which doesn't do much good). Don't close self when falling through the loop.
* Added expect() method which takes a list of regular expressions and anGuido van Rossum1997-12-241-2/+52
| | | | optional timeout. Also moved some imports around.
* Use string.replace instead of regsub.[g]sub.Guido van Rossum1997-12-241-2/+1
|
* Decided to add the telnet library that I wrote long ago (it's still inGuido van Rossum1997-12-241-0/+424
the Demos/cwilib directory). Converted comments to doc strings and used default arguments instead of *args. Updated the example.