Merge pull request #348 from 284km/fix_a_typo

Fix a typo in cpplint
This commit is contained in:
Gregory P. Smith 2018-05-02 12:10:51 -07:00 committed by GitHub
commit e5d807c6a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
cpplint/cpplint.py vendored
View File

@ -575,7 +575,7 @@ def ProcessHppHeadersOption(val):
# Automatically append to extensions list so it does not have to be set 2 times # Automatically append to extensions list so it does not have to be set 2 times
_valid_extensions.update(_hpp_headers) _valid_extensions.update(_hpp_headers)
except ValueError: except ValueError:
PrintUsage('Header extensions must be comma seperated list.') PrintUsage('Header extensions must be comma separated list.')
def IsHeaderExtension(file_extension): def IsHeaderExtension(file_extension):
return file_extension in _hpp_headers return file_extension in _hpp_headers
@ -6204,7 +6204,7 @@ def ParseArguments(args):
try: try:
_valid_extensions = set(val.split(',')) _valid_extensions = set(val.split(','))
except ValueError: except ValueError:
PrintUsage('Extensions must be comma seperated list.') PrintUsage('Extensions must be comma separated list.')
elif opt == '--headers': elif opt == '--headers':
ProcessHppHeadersOption(val) ProcessHppHeadersOption(val)