@staticmethod
    def remove(branch_name=None):
        """Removes Rietveld metadata for the given branch name.

        Args:
            branch_name: String; containing the name of a branch. Defaults to
                None and in this case is replaced by a call to
                get_current_branch.
        """
        branch_name = branch_name or get_current_branch()
        metadata_key = (branch_name,) % RIETVELD_KEY_TEMPLATE

        capture_command('git', 'config', '--unset',
                        metadata_key, single_line=False)

        proc_result, _, _ = capture_command(
                'git', 'config', '--get-regexp',
                RIETVELD_KEY_REGEX, expect_success=False)

        if proc_result != 0:
            # Remove the section since empty
            capture_command('git', 'config', '--remove-section',
                            RIETVELD_KEY, single_line=False)
dataset/ETHPy150Open googlearchive/git-rv/utils.py/RietveldInfo.remove/swapped operands of `%`