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 /main.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 'main.py')
-rwxr-xr-x | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
212 | def _CheckRepoDir(dir): | 212 | def _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 | ||