diff options
author | Mickaël Salaün <mic@digikod.net> | 2012-09-30 00:37:55 +0200 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2012-10-10 08:30:15 +0200 |
commit | 2f6ab7f5b8f21b2dbfe9ae102674bd1694e94f03 (patch) | |
tree | 040f9045751d83902ea8c479304fdfa2a0061a54 /project.py | |
parent | 3a6cd4200e42fbb5a21b3fb8d3c9738c0320cc63 (diff) | |
download | git-repo-2f6ab7f5b8f21b2dbfe9ae102674bd1694e94f03.tar.gz |
Rename "dir" variables
The variable name "dir" conflicts with the name of a Python built-in
function: http://docs.python.org/library/functions.html#dir
Change-Id: I850f3ec8df7563dc85e21f2876fe5e6550ca2d8f
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -209,9 +209,9 @@ class _CopyFile: | |||
209 | if os.path.exists(dest): | 209 | if os.path.exists(dest): |
210 | os.remove(dest) | 210 | os.remove(dest) |
211 | else: | 211 | else: |
212 | dir = os.path.dirname(dest) | 212 | dest_dir = os.path.dirname(dest) |
213 | if not os.path.isdir(dir): | 213 | if not os.path.isdir(dest_dir): |
214 | os.makedirs(dir) | 214 | os.makedirs(dest_dir) |
215 | shutil.copy(src, dest) | 215 | shutil.copy(src, dest) |
216 | # make the file read-only | 216 | # make the file read-only |
217 | mode = os.stat(dest)[stat.ST_MODE] | 217 | mode = os.stat(dest)[stat.ST_MODE] |