mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix use of 'file' as a variable name.
(I've tested the fixes, but please proofread anyway.)
This commit is contained in:
parent
bf1bef820c
commit
ac6df95d07
16 changed files with 108 additions and 107 deletions
|
@ -384,9 +384,9 @@ def makedir(pathname):
|
|||
# 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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue