third_party/blink/tools/blinkpy/w3c/local_wpt.py
def apply_patch(self, patch):
        """Applies a Chromium patch to the local WPT repo and stages.

        Returns:
            A string containing error messages from git, empty if the patch applies cleanly.
        """
        # Remove Chromium WPT directory prefix.
        patch = patch.replace(CHROMIUM_WPT_DIR, '')
        try:
            self.run(['git', 'apply', '-'], input=patch)
            self.run(['git', 'add', '.'])
        except ScriptError as error:
            return error.message
        return ''
Applies a Chromium patch to the local WPT repo and stages.

        Returns:
            A string containing error messages from git, empty if the patch applies cleanly.
        
Applies a Chromium patch to the local WPT repo and stages.
Applies a Chromium patch to the local WPT repo and stages .
def apply_patch(self, patch):
        patch = patch.replace(CHROMIUM_WPT_DIR, '')
        try:
            self.run(['git', 'apply', '-'], input=patch)
            self.run(['git', 'add', '.'])
        except ScriptError as error:
            return error.message
        return ''
def apply_patch ( self , patch ) : patch = patch . replace ( CHROMIUM_WPT_DIR , '' ) try : self . run ( [ 'git' , 'apply' , '-' ] , input = patch ) self . run ( [ 'git' , 'add' , '.' ] ) except ScriptError as error : return error . message return ''
Applies a Chromium patch to the local WPT repo and stages.
Applies a Chromium patch to the local WPT repo and stages .
"""Applies a Chromium patch to the local WPT repo and stages.

        Returns:
            A string containing error messages from git, empty if the patch applies cleanly.
        """ # Remove Chromium WPT directory prefix.
A string containing error messages from git, empty if the patch applies cleanly.
A string containing error messages from git empty if the patch applies cleanly .
self
patch