summaryrefslogtreecommitdiff
path: root/Lib/telnetlib.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-08-13 08:39:33 +0000
committerGeorg Brandl <georg@python.org>2009-08-13 08:39:33 +0000
commitd3d4fac0998dab21d2774ea205cf6194e280c8a6 (patch)
tree3a52119890865d7973206a832ceb40b5d80cd0d2 /Lib/telnetlib.py
parentffdb4b46c14da017d4b42d82ccac6cdf56bce5ce (diff)
downloadcpython-d3d4fac0998dab21d2774ea205cf6194e280c8a6.tar.gz
Merged revisions 74217,74224 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r74217 | jack.diederich | 2009-07-27 00:23:04 +0200 (Mo, 27 Jul 2009) | 1 line - fix issue #6106, Telnet.process_rawq default handling of WILL/WONT/DO/DONT ........ r74224 | jack.diederich | 2009-07-27 11:03:14 +0200 (Mo, 27 Jul 2009) | 1 line - belated ACK for issue #6106 ........
Diffstat (limited to 'Lib/telnetlib.py')
-rw-r--r--Lib/telnetlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py
index 11e1a654b9..5258c8ad20 100644
--- a/Lib/telnetlib.py
+++ b/Lib/telnetlib.py
@@ -459,7 +459,7 @@ class Telnet:
# unless we did a WILL/DO before.
self.msg('IAC %d not recognized' % ord(c))
elif len(self.iacseq) == 2:
- cmd = self.iacseq[1]
+ cmd = self.iacseq[1:2]
self.iacseq = b''
opt = c
if cmd in (DO, DONT):