third_party/blink/tools/blinkpy/w3c/import_notifier.py
def format_commit_list(self, imported_commits, directory):
        """Formats the list of imported WPT commits.

        Imports affecting the given directory will be highlighted.

        Args:
            imported_commits: A list of (SHA, commit subject) pairs.
            directory: An absolute path of a directory in the Chromium repo, for
                which the list is formatted.

        Returns:
            A multi-line string.
        """
        path_from_wpt = self.host.filesystem.relpath(
            directory, self.finder.path_from_web_tests('external', 'wpt'))
        commit_list = ''
        for sha, subject in imported_commits:
            # subject is a Unicode string and can contain non-ASCII characters.
            line = u'{}: {}'.format(subject, GITHUB_COMMIT_PREFIX + sha)
            if self.local_wpt.is_commit_affecting_directory(
                    sha, path_from_wpt):
                line += ' [affecting this directory]'
            commit_list += line + '\n'
        return commit_list
Formats the list of imported WPT commits.

        Imports affecting the given directory will be highlighted.

        Args:
            imported_commits: A list of (SHA, commit subject) pairs.
            directory: An absolute path of a directory in the Chromium repo, for
                which the list is formatted.

        Returns:
            A multi-line string.
        
Formats the list of imported WPT commits.
Imports affecting the given directory will be highlighted.
Formats the list of imported WPT commits . Imports affecting the given directory will be highlighted .
def format_commit_list(self, imported_commits, directory):
        path_from_wpt = self.host.filesystem.relpath(
            directory, self.finder.path_from_web_tests('external', 'wpt'))
        commit_list = ''
        for sha, subject in imported_commits:
            line = u'{}: {}'.format(subject, GITHUB_COMMIT_PREFIX + sha)
            if self.local_wpt.is_commit_affecting_directory(
                    sha, path_from_wpt):
                line += ' [affecting this directory]'
            commit_list += line + '\n'
        return commit_list
def format_commit_list ( self , imported_commits , directory ) : path_from_wpt = self . host . filesystem . relpath ( directory , self . finder . path_from_web_tests ( 'external' , 'wpt' ) ) commit_list = '' for sha , subject in imported_commits : line = u'{}: {}' . format ( subject , GITHUB_COMMIT_PREFIX + sha ) if self . local_wpt . is_commit_affecting_directory ( sha , path_from_wpt ) : line += ' [affecting this directory]' commit_list += line + '\n' return commit_list
Formats the list of imported WPT commits.
Formats the list of imported WPT commits .
"""Formats the list of imported WPT commits.

        Imports affecting the given directory will be highlighted.

        Args:
            imported_commits: A list of (SHA, commit subject) pairs.
            directory: An absolute path of a directory in the Chromium repo, for
                which the list is formatted.

        Returns:
            A multi-line string.
        """ # subject is a Unicode string and can contain non-ASCII characters.
A multi-line string.
A multi - line string .
self
imported_commits
A list of (SHA, commit subject) pairs.
A list of ( SHA commit subject ) pairs .
directory
An absolute path of a directory in the Chromium repo, for
which the list is formatted.
An absolute path of a directory in the Chromium repo for which the list is formatted .