summaryrefslogtreecommitdiffstats
path: root/main.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 /main.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 'main.py')
-rwxr-xr-xmain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 5c8772c6..665a655b 100755
--- a/main.py
+++ b/main.py
@@ -209,8 +209,8 @@ def _CheckWrapperVersion(ver, repo_path):
209 cp %s %s 209 cp %s %s
210""" % (exp_str, _MyWrapperPath(), repo_path) 210""" % (exp_str, _MyWrapperPath(), repo_path)
211 211
212def _CheckRepoDir(dir): 212def _CheckRepoDir(repo_dir):
213 if not dir: 213 if not repo_dir:
214 print >>sys.stderr, 'no --repo-dir argument' 214 print >>sys.stderr, 'no --repo-dir argument'
215 sys.exit(1) 215 sys.exit(1)
216 216