Fix use of 'file' as a variable name.
(I've tested the fixes, but please proofread anyway.)
diff --git a/Tools/scripts/ftpmirror.py b/Tools/scripts/ftpmirror.py
index 2e3b215..41607b0 100755
--- a/Tools/scripts/ftpmirror.py
+++ b/Tools/scripts/ftpmirror.py
@@ -384,9 +384,9 @@
# rval() but is still somewhat readable (i.e. not a single long line).
# Also creates a backup file.
def writedict(dict, filename):
- dir, file = os.path.split(filename)
- tempname = os.path.join(dir, '@' + file)
- backup = os.path.join(dir, file + '~')
+ dir, fname = os.path.split(filename)
+ tempname = os.path.join(dir, '@' + fname)
+ backup = os.path.join(dir, fname + '~')
try:
os.unlink(backup)
except os.error: