From 2f6ab7f5b8f21b2dbfe9ae102674bd1694e94f03 Mon Sep 17 00:00:00 2001 From: Mickaël Salaün Date: Sun, 30 Sep 2012 00:37:55 +0200 Subject: 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 --- project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'project.py') diff --git a/project.py b/project.py index d81152cf..96ab907b 100644 --- a/project.py +++ b/project.py @@ -209,9 +209,9 @@ class _CopyFile: if os.path.exists(dest): os.remove(dest) else: - dir = os.path.dirname(dest) - if not os.path.isdir(dir): - os.makedirs(dir) + dest_dir = os.path.dirname(dest) + if not os.path.isdir(dest_dir): + os.makedirs(dest_dir) shutil.copy(src, dest) # make the file read-only mode = os.stat(dest)[stat.ST_MODE] -- cgit v1.2.3-54-g00ecf