diff Demo/sockets/rpython.py @ 32735:2bc66f1df7cc legacy-trunk

Whitespace normalization. Ran reindent.py over the entire source tree.
author Tim Peters <tim.peters@gmail.com>
date Sun, 18 Jul 2004 05:56:09 +0000
parents 73758db2f464
children 7d16b42fcdbd
line wrap: on
line diff
--- a/Demo/sockets/rpython.py	Sun Jul 18 05:31:31 2004 +0000
+++ b/Demo/sockets/rpython.py	Sun Jul 18 05:56:09 2004 +0000
@@ -11,25 +11,25 @@
 BUFSIZE = 1024
 
 def main():
-	if len(sys.argv) < 3:
-		print "usage: rpython host command"
-		sys.exit(2)
-	host = sys.argv[1]
-	port = PORT
-	i = string.find(host, ':')
-	if i >= 0:
-		port = string.atoi(port[i+1:])
-		host = host[:i]
-	command = string.join(sys.argv[2:])
-	s = socket(AF_INET, SOCK_STREAM)
-	s.connect((host, port))
-	s.send(command)
-	s.shutdown(1)
-	reply = ''
-	while 1:
-		data = s.recv(BUFSIZE)
-		if not data: break
-		reply = reply + data
-	print reply,
+    if len(sys.argv) < 3:
+        print "usage: rpython host command"
+        sys.exit(2)
+    host = sys.argv[1]
+    port = PORT
+    i = string.find(host, ':')
+    if i >= 0:
+        port = string.atoi(port[i+1:])
+        host = host[:i]
+    command = string.join(sys.argv[2:])
+    s = socket(AF_INET, SOCK_STREAM)
+    s.connect((host, port))
+    s.send(command)
+    s.shutdown(1)
+    reply = ''
+    while 1:
+        data = s.recv(BUFSIZE)
+        if not data: break
+        reply = reply + data
+    print reply,
 
 main()