summaryrefslogtreecommitdiffstats
path: root/Lib/telnetlib.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-11-09 05:08:07 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-11-09 05:08:07 (GMT)
commit230a60c6ec4861342278fb4546ebc907baf3b23b (patch)
tree00135e543b64638036efcacdc9d5dbfde7988959 /Lib/telnetlib.py
parentb0ead4ea4a1e0f4e5dc2a00110be8038586c9e21 (diff)
downloadcpython-230a60c6ec4861342278fb4546ebc907baf3b23b.zip
cpython-230a60c6ec4861342278fb4546ebc907baf3b23b.tar.gz
cpython-230a60c6ec4861342278fb4546ebc907baf3b23b.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/telnetlib.py')
-rw-r--r--Lib/telnetlib.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py
index 18391e5..4d03861 100644
--- a/Lib/telnetlib.py
+++ b/Lib/telnetlib.py
@@ -399,12 +399,12 @@ class Telnet:
if not buf and self.eof and not self.rawq:
raise EOFError, 'telnet connection closed'
return buf
-
+
def read_sb_data(self):
"""Return any data available in the SB ... SE queue.
- Return '' if no SB ... SE available. Should only be called
- after seeing a SB or SE command. When a new SB command is
+ Return '' if no SB ... SE available. Should only be called
+ after seeing a SB or SE command. When a new SB command is
found, old unread SB data will be discarded. Don't block.
"""
@@ -442,7 +442,7 @@ class Telnet:
if c in (DO, DONT, WILL, WONT):
self.iacseq += c
continue
-
+
self.iacseq = ''
if c == IAC:
buf[self.sb] = buf[self.sb] + c
@@ -468,7 +468,7 @@ class Telnet:
self.iacseq = ''
opt = c
if cmd in (DO, DONT):
- self.msg('IAC %s %d',
+ self.msg('IAC %s %d',
cmd == DO and 'DO' or 'DONT', ord(opt))
if self.option_callback:
self.option_callback(self.sock, cmd, opt)