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 --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.py') 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): cp %s %s """ % (exp_str, _MyWrapperPath(), repo_path) -def _CheckRepoDir(dir): - if not dir: +def _CheckRepoDir(repo_dir): + if not repo_dir: print >>sys.stderr, 'no --repo-dir argument' sys.exit(1) -- cgit v1.2.3-54-g00ecf