ssh: rename file => filename, to not shadow the built-in

This commit is contained in:
Chris Rebert 2013-09-10 22:17:58 -07:00
parent e644de7e76
commit bf2c8ee467
2 changed files with 4 additions and 4 deletions

View File

@ -616,11 +616,11 @@ def prep_trans_tar(opts, chunks, file_refs):
break
files = file_client.cache_dir(name, env, True)
if files:
for file in files:
for filename in files:
tgt = os.path.join(
env_root,
short,
file[file.find(short) + len(short):],
filename[filename.find(short) + len(short):],
)
tgt_dir = os.path.dirname(tgt)
if not os.path.isdir(tgt_dir):

View File

@ -128,11 +128,11 @@ def prep_trans_tar(opts, chunks, file_refs):
break
files = file_client.cache_dir(name, env, True)
if files:
for file in files:
for filename in files:
tgt = os.path.join(
env_root,
short,
file[file.find(short) + len(short):],
filename[filename.find(short) + len(short):],
)
tgt_dir = os.path.dirname(tgt)
if not os.path.isdir(tgt_dir):