Problems with telnetlib
Bengt Richter
bokr at oz.net
Sat Feb 16 18:02:55 EST 2002
On 16 Feb 2002 22:45:49 +0100, martin at v.loewis.de (Martin v. Loewis) wrote:
>Jan-Fredrik Braseth <janfbr at sex.ifi.uio.no> writes:
>
>> > # I would change opt to c in the following line
>> > self.msg('IAC %d not recognized' % ord(opt))
>>
>> But if there really is something wrong with that, shouldn't someone
>> send a bug report or something to the creators of Python?
>
>Please do: send to to sf.net/projects/python. A patch might help even
>more; please use a context or unified diff.
>
>
Oops, you were faster than I thought would happen. Sorry ;-/
If Jan-Fredrik finds the change improves things, the diff will look
something like:
_________________________________________________________________
--- \Python22\Lib\telnetlib.py.orig Sun Oct 07 04:53:32 2001
+++ \Python22\Lib\telnetlib.py Sat Feb 16 14:54:27 2002
@@ -421,7 +421,7 @@
else:
self.sock.send(IAC + DONT + opt)
else:
- self.msg('IAC %d not recognized' % ord(opt))
+ self.msg('IAC %d not recognized' % ord(c))
except EOFError: # raised by self.rawq_getchar()
pass
self.cookedq = self.cookedq + buf
_________________________________________________________________
Let's see what J-F finds.
Regards,
Bengt Richter
More information about the Python-list
mailing list