From 1033accb236e0e7d556de6fb56d2a283d9be8acb Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Wed, 13 May 2009 14:36:48 +0000 Subject: [PATCH] Rename presubmit.py to presubmit_support.py to reduce confusion and be able to add a PRESUBMIT.py check into depot_tools. Review URL: http://codereview.chromium.org/113337 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15954 0039d316-1c4b-4281-b951-d872f2087c98 --- gcl.py | 12 ++++++------ presubmit.py => presubmit_support.py | 0 tests/presubmit_unittest.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename presubmit.py => presubmit_support.py (100%) diff --git a/gcl.py b/gcl.py index f8b31aae3..bbcba87ec 100755 --- a/gcl.py +++ b/gcl.py @@ -987,12 +987,12 @@ def Lint(change_info, args): def DoPresubmitChecks(change_info, committing): """Imports presubmit, then calls presubmit.DoPresubmitChecks.""" # Need to import here to avoid circular dependency. - import presubmit - result = presubmit.DoPresubmitChecks(change_info, - committing, - verbose=False, - output_stream=sys.stdout, - input_stream=sys.stdin) + import presubmit_support + result = presubmit_support.DoPresubmitChecks(change_info, + committing, + verbose=False, + output_stream=sys.stdout, + input_stream=sys.stdin) if not result: print "\nPresubmit errors, can't continue (use --no_presubmit to bypass)" return result diff --git a/presubmit.py b/presubmit_support.py similarity index 100% rename from presubmit.py rename to presubmit_support.py diff --git a/tests/presubmit_unittest.py b/tests/presubmit_unittest.py index 5f9e735dc..68760ee76 100755 --- a/tests/presubmit_unittest.py +++ b/tests/presubmit_unittest.py @@ -12,7 +12,7 @@ import unittest # Local imports import gcl import gclient -import presubmit +import presubmit_support as presubmit import presubmit_canned_checks