INNER CODE UNIT · Python

Class

hartwork/git-delete-merged-branches · git_delete_merged_branches/_argparse_color.py:30

    class Class(formatter_class):
        def format_help(self):
            text = super().format_help()
            for pattern, replacement in _SUBSTITUTIONS:
                matcher = re.compile(pattern, flags=re.MULTILINE)
                text = matcher.sub(replacement, text)
            return text

    Class.__name__ = class_name

    return Class

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…