summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorMickaël Salaün <mic@digikod.net>2012-09-30 00:37:55 +0200
committerMickaël Salaün <mic@digikod.net>2012-10-10 08:30:15 +0200
commit2f6ab7f5b8f21b2dbfe9ae102674bd1694e94f03 (patch)
tree040f9045751d83902ea8c479304fdfa2a0061a54 /project.py
parent3a6cd4200e42fbb5a21b3fb8d3c9738c0320cc63 (diff)
downloadgit-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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/project.py b/project.py
index d81152cf..96ab907b 100644
--- a/project.py
+++ b/project.py
@@ -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]