R. David Murray
dacb8043ff
Merged revisions 87230 via svnmerge from
...
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.
........
2010-12-14 14:34:16 +00:00
Facundo Batista
4f1b1ed975
Fixed the semantic of timeout for socket.create_connection and
...
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, :)
2008-05-29 16:39:26 +00:00
Facundo Batista
b6a5c9d605
Added timout parameter to telnetlib.Telnet. Also created
...
test_telnetlib.py with a basic test and timeout ones.
Docs are also updated.
2007-03-29 18:22:35 +00:00
Martin v. Löwis
ede77f5373
Patch #825417 : Fix timeout processing in expect,
...
read_until. Will backport to 2.4.
2006-07-03 13:01:35 +00:00
Neal Norwitz
c5d0dbd328
Fix a couple of strings that were no-ops. urllib.open_file was a docstring
...
in 2.4, so put it back. The string in telnetlib looks like a comment.
2006-04-09 04:00:49 +00:00
Hye-Shik Chang
e029da0aca
Quote docstring with r"" to keep '\r\n' in example code.
2005-09-07 07:40:05 +00:00
Walter Dörwald
70a6b49821
Replace backticks with repr() or "%r"
...
From SF patch #852334 .
2004-02-12 17:35:32 +00:00
Guido van Rossum
68468eba63
Get rid of many apply() calls.
2003-02-27 20:14:51 +00:00
Tim Peters
230a60c6ec
Whitespace normalization.
2002-11-09 05:08:07 +00:00
Martin v. Löwis
574deae5b7
Patch #625823 : Add symbolic constants for more commands.
2002-11-04 17:34:07 +00:00
Martin v. Löwis
1da9c57c74
Patch #630829 : Don't block on IAC, process suboptions.
2002-11-04 09:56:00 +00:00
Raymond Hettinger
10ff706e27
Replaced boolean tests with is None.
2002-06-02 03:04:52 +00:00
Guido van Rossum
6a1bd39d8e
SF 554073. Fix typo in error reporting of unrecognized character
...
following IAC. Bugfix candidate if anyone cares.
2002-05-13 14:55:33 +00:00
Martin v. Löwis
e12454f44a
The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715 .
...
Replaces calls to socket.send() (which isn't guaranteed to send all data)
with the new socket.sendall() method.
2002-02-16 23:06:19 +00:00
Martin v. Löwis
322c0d187d
Only close sockets if they have been created. Reported by Blake Winton.
2001-10-07 08:53:32 +00:00
Martin v. Löwis
b0162f9afc
Patch #416079 : fix the debug string output when receiving telnet commands.
...
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
2001-09-06 08:51:38 +00:00
Martin v. Löwis
2ad2569c72
Initialize msg to avoid unbound locals.
2001-07-31 08:40:21 +00:00
Martin v. Löwis
4eb5940a4d
Untabify IPv6 changes.
2001-07-26 13:37:33 +00:00
Martin v. Löwis
a43c2f845e
Patch #401196 : Use getaddrinfo and AF_INET6 in TCP servers and clients.
2001-07-24 20:34:08 +00:00
Skip Montanaro
40fc16059f
final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be
...
giving it a slight facelift
2001-03-01 04:27:19 +00:00
Eric S. Raymond
6b8c52835c
String method conversion.
2001-02-09 07:10:12 +00:00
Tim Peters
b90f89a496
Whitespace normalization.
2001-01-15 03:26:36 +00:00
Guido van Rossum
823eb4ba81
Caolan McNamara:
...
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.
2000-05-02 14:32:11 +00:00
Guido van Rossum
82eae9eaa7
Added mt_interact() -- multithreaded version of interact().
...
interact() automatically uses this on Windows (where the
single-threaded version doesn't work).
1998-12-23 23:04:17 +00:00
Guido van Rossum
45e2fbc2e7
Mass check-in after untabifying all files that need it.
1998-03-26 21:13:24 +00:00
Guido van Rossum
2fc4d581ba
Added debug statements to report data actually sent and received on
...
the socket.
1998-02-19 21:19:48 +00:00
Guido van Rossum
5baf4bc978
Moved things around a bit in interact(), so outout is processed before
...
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.
1997-12-29 20:05:45 +00:00
Guido van Rossum
ccb5ec62e1
Added expect() method which takes a list of regular expressions and an
...
optional timeout. Also moved some imports around.
1997-12-24 22:24:19 +00:00
Guido van Rossum
00f9fea288
Use string.replace instead of regsub.[g]sub.
1997-12-24 21:18:41 +00:00
Guido van Rossum
b9b50eb7e0
Decided to add the telnet library that I wrote long ago (it's still in
...
the Demos/cwilib directory). Converted comments to doc strings and
used default arguments instead of *args. Updated the example.
1997-12-24 21:07:04 +00:00