Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index dde025383c327659198c00bb2e1368df24422e90..8180fe5f954b15a0ef886c8126bdde3cd2f10cb0 100644 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -85,7 +85,7 @@ def CheckChangeOnCommit(input_api, output_api): |
# Accept any year number from 2009 to the current year. |
current_year = int(input_api.time.strftime('%Y')) |
- allowed_years = (str(s) for s in reversed(xrange(2009, current_year + 1))) |
+ allowed_years = (str(s) for s in reversed(range(2009, current_year + 1))) |
years_re = '(' + '|'.join(allowed_years) + ')' |
# The (c) is deprecated, but tolerate it until it's removed from all files. |