From e6ddc8b20b493fef2e7cffb2e1351fe1d238857e Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 18 Jul 2004 05:56:09 +0000 Subject: Whitespace normalization. Ran reindent.py over the entire source tree. --- Demo/scripts/script.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Demo/scripts/script.py') diff --git a/Demo/scripts/script.py b/Demo/scripts/script.py index cbad3679d1..6eaa7aec2e 100755 --- a/Demo/scripts/script.py +++ b/Demo/scripts/script.py @@ -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 os, time, sys 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) -- cgit v1.2.1