android_webview/support_library/PRESUBMIT.py
def _CheckFeatureDevSuffix(input_api, output_api):
  """Checks that Features.DEV_SUFFIX is not used in boundary_interfaces. The
  right place to use it is SupportLibWebViewChromiumFactory.
  """

  pattern = input_api.re.compile(r'\bDEV_SUFFIX\b')

  problems = []
  filt = lambda f: 'boundary_interfaces' in f.LocalPath()
  for f in input_api.AffectedFiles(file_filter=filt):
    for line_num, line in f.ChangedContents():
      m = pattern.search(line)
      if m:
        problems.append('  %s:%d\n    %s\n' % (f.LocalPath(), line_num, line))

  if not problems:
    return []
  return [output_api.PresubmitPromptWarning(
    'DEV_SUFFIX should not be used in boundary_interfaces.\n' + '\n'
    .join(problems))]
Checks that Features.DEV_SUFFIX is not used in boundary_interfaces. The
  right place to use it is SupportLibWebViewChromiumFactory.
  
Checks that Features.DEV_SUFFIX is not used in boundary_interfaces. The
right place to use it is SupportLibWebViewChromiumFactory.
Checks that Features . DEV_SUFFIX is not used in boundary_interfaces . The right place to use it is SupportLibWebViewChromiumFactory .
def _CheckFeatureDevSuffix(input_api, output_api):
  pattern = input_api.re.compile(r'\bDEV_SUFFIX\b')
  problems = []
  filt = lambda f: 'boundary_interfaces' in f.LocalPath()
  for f in input_api.AffectedFiles(file_filter=filt):
    for line_num, line in f.ChangedContents():
      m = pattern.search(line)
      if m:
        problems.append('  %s:%d\n    %s\n' % (f.LocalPath(), line_num, line))
  if not problems:
    return []
  return [output_api.PresubmitPromptWarning(
    'DEV_SUFFIX should not be used in boundary_interfaces.\n' + '\n'
    .join(problems))]
def _CheckFeatureDevSuffix ( input_api , output_api ) : pattern = input_api . re . compile ( r'\bDEV_SUFFIX\b' ) problems = [ ] filt = lambda f : 'boundary_interfaces' in f . LocalPath ( ) for f in input_api . AffectedFiles ( file_filter = filt ) : for line_num , line in f . ChangedContents ( ) : m = pattern . search ( line ) if m : problems . append ( '  %s:%d\n    %s\n' % ( f . LocalPath ( ) , line_num , line ) ) if not problems : return [ ] return [ output_api . PresubmitPromptWarning ( 'DEV_SUFFIX should not be used in boundary_interfaces.\n' + '\n' . join ( problems ) ) ]
Checks that Features.DEV_SUFFIX is not used in boundary_interfaces.
Checks that Features . DEV_SUFFIX is not used in boundary_interfaces .
"""Checks that Features.DEV_SUFFIX is not used in boundary_interfaces. The
  right place to use it is SupportLibWebViewChromiumFactory.
  """
input_api
output_api