diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2003-05-13 18:14:25 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2003-05-13 18:14:25 (GMT) |
commit | ac6df95d07aa3951f8bfc6febce132e09850db73 (patch) | |
tree | 5bc66133d5d093e099b622ac3cd35e216f60a389 /Tools/scripts/dutree.py | |
parent | bf1bef820c5af6b0a9a60abe1564ac35f036fdcb (diff) | |
download | cpython-ac6df95d07aa3951f8bfc6febce132e09850db73.zip cpython-ac6df95d07aa3951f8bfc6febce132e09850db73.tar.gz cpython-ac6df95d07aa3951f8bfc6febce132e09850db73.tar.bz2 |
Fix use of 'file' as a variable name.
(I've tested the fixes, but please proofread anyway.)
Diffstat (limited to 'Tools/scripts/dutree.py')
-rwxr-xr-x | Tools/scripts/dutree.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/dutree.py b/Tools/scripts/dutree.py index 35b3916..857a5cc 100755 --- a/Tools/scripts/dutree.py +++ b/Tools/scripts/dutree.py @@ -11,8 +11,8 @@ def main(): while line[i] in '0123456789': i = i+1 size = eval(line[:i]) while line[i] in ' \t': i = i+1 - file = line[i:-1] - comps = file.split('/') + filename = line[i:-1] + comps = filename.split('/') if comps[0] == '': comps[0] = '/' if comps[len(comps)-1] == '': del comps[len(comps)-1] total, d = store(size, comps, total, d) |