tools/resources/list_unused_grit_header.py
def ShouldScanFile(filename):
  """Return if the filename has one of the extensions below."""
  extensions = ['.cc', '.cpp', '.h', '.mm']
  file_extension = os.path.splitext(filename)[1]
  return file_extension in extensions
Return if the filename has one of the extensions below.
Return if the filename has one of the extensions below.
Return if the filename has one of the extensions below .
def ShouldScanFile(filename):
  extensions = ['.cc', '.cpp', '.h', '.mm']
  file_extension = os.path.splitext(filename)[1]
  return file_extension in extensions
def ShouldScanFile ( filename ) : extensions = [ '.cc' , '.cpp' , '.h' , '.mm' ] file_extension = os . path . splitext ( filename ) [ 1 ] return file_extension in extensions
Return if the filename has one of the extensions below.
Return if the filename has one of the extensions below .
"""Return if the filename has one of the extensions below."""
filename