diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-06 18:11:18 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-06 18:11:18 +0000 |
commit | ac54b138ffeeb85b270203b2f378c93e4acc62e9 (patch) | |
tree | fe583c54100aaef86db53415c4624ad97897aaf4 /PRESUBMIT.py | |
parent | 3b4df8c7ec9b8263d5b394bbbbe62d3106eaffdd (diff) | |
download | chromium_src-ac54b138ffeeb85b270203b2f378c93e4acc62e9.zip chromium_src-ac54b138ffeeb85b270203b2f378c93e4acc62e9.tar.gz chromium_src-ac54b138ffeeb85b270203b2f378c93e4acc62e9.tar.bz2 |
presubmit: Make AUTHORS presubmit check use lower-cased email addresses.
This is so that presubmit stops complaining about Takano.Naoki@gmail.com.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7024048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88004 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r-- | PRESUBMIT.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index f5dd201..eafb77a 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -105,8 +105,8 @@ def _CheckAuthorizedAuthor(input_api, output_api): valid_authors = ( input_api.re.match(r'[^#]+\s+\<(.+?)\>\s*$', line) for line in open(authors_path)) - valid_authors = [item.group(1) for item in valid_authors if item] - if not author in valid_authors: + valid_authors = [item.group(1).lower() for item in valid_authors if item] + if not author.lower() in valid_authors: return [output_api.PresubmitPromptWarning( ('%s is not in AUTHORS file. If you are a new contributor, please visit' '\n' |