ios/PRESUBMIT.py
def _HasToDoWithNoBug(input_api, line):
  """ Returns True if TODO is not identified by a bug number."""
  todo_regex = input_api.re.compile(TODO_PATTERN)
  crbug_regex = input_api.re.compile(CRBUG_PATTERN)

  todo_match = todo_regex.search(line)
  if not todo_match:
    return False
  crbug_match = crbug_regex.match(todo_match.group(1))
  return not crbug_match
 Returns True if TODO is not identified by a bug number.
Returns True if TODO is not identified by a bug number.
Returns True if TODO is not identified by a bug number .
def _HasToDoWithNoBug(input_api, line):
  todo_regex = input_api.re.compile(TODO_PATTERN)
  crbug_regex = input_api.re.compile(CRBUG_PATTERN)
  todo_match = todo_regex.search(line)
  if not todo_match:
    return False
  crbug_match = crbug_regex.match(todo_match.group(1))
  return not crbug_match
def _HasToDoWithNoBug ( input_api , line ) : todo_regex = input_api . re . compile ( TODO_PATTERN ) crbug_regex = input_api . re . compile ( CRBUG_PATTERN ) todo_match = todo_regex . search ( line ) if not todo_match : return False crbug_match = crbug_regex . match ( todo_match . group ( 1 ) ) return not crbug_match
Returns True if TODO is not identified by a bug number.
Returns True if TODO is not identified by a bug number .
""" Returns True if TODO is not identified by a bug number."""
input_api
line