def find_tasks(source_code):
 results = []
 for (line, text) in enumerate(source_code.splitlines()):
  for todo in re.findall(TASKS_PATTERN, text):
   results.append((todo[(-1)].strip().capitalize(), (line + 1)))
 return results

def find_tasks ( source_code ) : results = [ ] for ( line , text ) in enumerate ( source_code . splitlines ( ) ) : for todo in re . findall ( TASKS_PATTERN , text ) : results . append ( ( todo [ ( - 1 ) ] . strip ( ) . capitalize ( ) , ( line + 1 ) ) ) return results
find tasks in source code .