Fix use of 'file' as a variable name.

(I've tested the fixes, but please proofread anyway.)
This commit is contained in:
Andrew M. Kuchling 2003-05-13 18:14:25 +00:00
parent bf1bef820c
commit ac6df95d07
16 changed files with 108 additions and 107 deletions

View file

@ -42,11 +42,11 @@ def main():
undefs.append(a)
if not args:
args = ['-']
for file in args:
if file == '-':
for filename in args:
if filename == '-':
process(sys.stdin, sys.stdout)
else:
f = open(file, 'r')
f = open(filename, 'r')
process(f, sys.stdout)
f.close()