summaryrefslogtreecommitdiffstats
path: root/Tools/idle/RemoteInterp.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-17 08:48:39 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-01-17 08:48:39 (GMT)
commit70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7 (patch)
treecf47b67db3753288cfd9fa2adc45e7c5cd2f8741 /Tools/idle/RemoteInterp.py
parenta88854059309667092000da55d4d5a5804267e9f (diff)
downloadcpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.zip
cpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.tar.gz
cpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Tools/idle/RemoteInterp.py')
-rw-r--r--Tools/idle/RemoteInterp.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/Tools/idle/RemoteInterp.py b/Tools/idle/RemoteInterp.py
index 3ad574b..724997c 100644
--- a/Tools/idle/RemoteInterp.py
+++ b/Tools/idle/RemoteInterp.py
@@ -9,7 +9,7 @@ VERBOSE = None
class SocketProtocol:
"""A simple protocol for sending strings across a socket"""
BUF_SIZE = 8192
-
+
def __init__(self, sock):
self.sock = sock
self._buffer = ''
@@ -176,11 +176,11 @@ class CommandProtocol:
def decode_seqno(self, buf):
return struct.unpack("I", buf)[0]
-
+
class StdioRedirector:
"""Redirect sys.std{in,out,err} to a set of file-like objects"""
-
+
def __init__(self, stdin, stdout, stderr):
self.stdin = stdin
self.stdout = stdout
@@ -292,7 +292,7 @@ class RIClient:
self._cmd.dispatch()
except EOFError:
pass
-
+
def handle_stdout(self, buf):
sys.stdout.write(buf)
## sys.stdout.flush()
@@ -339,5 +339,4 @@ if __name__ == "__main__":
startRemoteInterp(id)
else:
file = args[1]
- riExec(id, file)
-
+ riExec(id, file)