[Python-checkins] CVS: python/dist/src/Lib telnetlib.py,1.7,1.8

Guido van Rossum python-dev@python.org
Tue, 2 May 2000 10:32:13 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/Lib
In directory eric:/projects/python/develop/guido/src/Lib

Modified Files:
	telnetlib.py 
Log Message:
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.


Index: telnetlib.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/telnetlib.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** telnetlib.py	1998/12/23 23:04:17	1.7
--- telnetlib.py	2000/05/02 14:32:11	1.8
***************
*** 330,333 ****
--- 330,334 ----
                      self.msg('IAC %s %d',
                               c == WILL and 'WILL' or 'WONT', ord(c))
+                     self.sock.send(IAC + DONT + opt)
                  else:
                      self.msg('IAC %s not recognized' % `c`)