third_party/blink/tools/blinkpy/w3c/test_exporter.py
def create_or_update_pr_from_landed_commit(self, commit,
                                               pull_request=None):
        """Creates or updates a PR from a landed Chromium commit.

        Args:
            commit: A ChromiumCommit object.
            pull_request: Optional, a PullRequest namedtuple.
                If specified, updates the PR instead of creating one.
        """
        if pull_request:
            self.create_or_update_pr_from_commit(
                commit, provisional=False, pr_number=pull_request.number)
        else:
            branch_name = 'chromium-export-' + commit.short_sha
            self.create_or_update_pr_from_commit(
                commit, provisional=False, pr_branch_name=branch_name)
Creates or updates a PR from a landed Chromium commit.

        Args:
            commit: A ChromiumCommit object.
            pull_request: Optional, a PullRequest namedtuple.
                If specified, updates the PR instead of creating one.
        
Creates or updates a PR from a landed Chromium commit.
Creates or updates a PR from a landed Chromium commit .
def create_or_update_pr_from_landed_commit(self, commit,
                                               pull_request=None):
        if pull_request:
            self.create_or_update_pr_from_commit(
                commit, provisional=False, pr_number=pull_request.number)
        else:
            branch_name = 'chromium-export-' + commit.short_sha
            self.create_or_update_pr_from_commit(
                commit, provisional=False, pr_branch_name=branch_name)
def create_or_update_pr_from_landed_commit ( self , commit , pull_request = None ) : if pull_request : self . create_or_update_pr_from_commit ( commit , provisional = False , pr_number = pull_request . number ) else : branch_name = 'chromium-export-' + commit . short_sha self . create_or_update_pr_from_commit ( commit , provisional = False , pr_branch_name = branch_name )
Creates or updates a PR from a landed Chromium commit.
Creates or updates a PR from a landed Chromium commit .
"""Creates or updates a PR from a landed Chromium commit.

        Args:
            commit: A ChromiumCommit object.
            pull_request: Optional, a PullRequest namedtuple.
                If specified, updates the PR instead of creating one.
        """
self
commit
A ChromiumCommit object.
A ChromiumCommit object .
pull_request
Optional, a PullRequest namedtuple.
If specified, updates the PR instead of creating one.
Optional a PullRequest namedtuple . If specified updates the PR instead of creating one .