Remove SPECIAL_KEYS and GclChange.Changelist() to simplify the code.
Review URL: http://codereview.chromium.org/113883
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16983 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py
index 1b6d646..faf290a 100755
--- a/presubmit_canned_checks.py
+++ b/presubmit_canned_checks.py
@@ -8,7 +8,7 @@
def CheckChangeHasTestField(input_api, output_api):
"""Requires that the changelist have a TEST= field."""
- if input_api.change.Test:
+ if input_api.change.TEST:
return []
else:
return [output_api.PresubmitNotifyResult(
@@ -17,7 +17,7 @@
def CheckChangeHasBugField(input_api, output_api):
"""Requires that the changelist have a BUG= field."""
- if input_api.change.BugIDs:
+ if input_api.change.BUG:
return []
else:
return [output_api.PresubmitNotifyResult(
@@ -26,7 +26,7 @@
def CheckChangeHasTestedField(input_api, output_api):
"""Requires that the changelist have a TESTED= field."""
- if input_api.change.Tested:
+ if input_api.change.TESTED:
return []
else:
return [output_api.PresubmitError("Changelist must have a TESTED= field.")]