diff Demo/scripts/script.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 ca018e2bb865 7d16b42fcdbd
line wrap: on
line diff
--- a/Demo/scripts/script.py	Sun Jul 18 05:31:31 2004 +0000
+++ b/Demo/scripts/script.py	Sun Jul 18 05:56:09 2004 +0000
@@ -1,8 +1,8 @@
 #! /usr/bin/env python
 # script.py -- Make typescript of terminal session.
 # Usage:
-#	-a	Append to typescript.
-#	-p	Use Python as shell.
+#       -a      Append to typescript.
+#       -p      Use Python as shell.
 # Author: Steen Lumholt.
 
 
@@ -10,19 +10,19 @@
 import pty
 
 def read(fd):
-	data = os.read(fd, 1024)
-	file.write(data)
-	return data
+    data = os.read(fd, 1024)
+    file.write(data)
+    return data
 
 shell = 'sh'
 filename = 'typescript'
 mode = 'w'
 if os.environ.has_key('SHELL'):
-	shell = os.environ['SHELL']
+    shell = os.environ['SHELL']
 if '-a' in sys.argv:
-	mode = 'a'
+    mode = 'a'
 if '-p' in sys.argv:
-	shell = 'python'
+    shell = 'python'
 
 file = open(filename, mode)