Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Unified Diff: presubmit_canned_checks.py

Issue 6676128: fix a few minor lint and test issues. Note that presubmit_canned_checks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | presubmit_support.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: presubmit_canned_checks.py
diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py
index 25a3460212422783dde6e84a8752bb32ee5e5cbe..5b54a5b9aa269ebda194315648c42559633a092a 100644
--- a/presubmit_canned_checks.py
+++ b/presubmit_canned_checks.py
@@ -4,8 +4,6 @@
"""Generic presubmit checks that can be reused by other presubmit checks."""
-import time
-
### Description checks
@@ -761,7 +759,7 @@ def PanProjectChecks(input_api, output_api,
r'can be\n'
r'.*? found in the LICENSE file\.\n'
) % {
- 'year': time.strftime('%Y'),
+ 'year': input_api.time.strftime('%Y'),
'project': project_name,
}
« no previous file with comments | « no previous file | presubmit_support.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698