third_party/blink/tools/blinkpy/common/checkout/baseline_optimizer.py
def _find_in_search_path(self, search_path, current_result,
                             results_by_directory):
        """Finds the index and the directory of a result on a search path."""
        for index, directory in enumerate(search_path):
            if (directory in results_by_directory
                    and (results_by_directory[directory] == current_result)):
                return index, directory
        assert current_result.is_extra_result, (
            'result %s not found in search path %s, %s' %
            (current_result, search_path, results_by_directory))
        # Implicit extra result at the root.
        return len(search_path) - 1, search_path[-1]
Finds the index and the directory of a result on a search path.
Finds the index and the directory of a result on a search path.
Finds the index and the directory of a result on a search path .
def _find_in_search_path(self, search_path, current_result,
                             results_by_directory):
        for index, directory in enumerate(search_path):
            if (directory in results_by_directory
                    and (results_by_directory[directory] == current_result)):
                return index, directory
        assert current_result.is_extra_result, (
            'result %s not found in search path %s, %s' %
            (current_result, search_path, results_by_directory))
        return len(search_path) - 1, search_path[-1]
def _find_in_search_path ( self , search_path , current_result , results_by_directory ) : for index , directory in enumerate ( search_path ) : if ( directory in results_by_directory and ( results_by_directory [ directory ] == current_result ) ) : return index , directory assert current_result . is_extra_result , ( 'result %s not found in search path %s, %s' % ( current_result , search_path , results_by_directory ) ) return len ( search_path ) - 1 , search_path [ - 1 ]
Finds the index and the directory of a result on a search path.
Finds the index and the directory of a result on a search path .
"""Finds the index and the directory of a result on a search path.""" # Implicit extra result at the root.
self
search_path
current_result
results_by_directory