def _format_issue_body(self, limit=-5):
        """Return formatted body."""
        from renku import __version__

        re_paths = r'(' + r'|'.join([path or os.getcwd()
                                     for path in sys.path]) + r')'
        tb = re.sub(re_paths, '[...]', traceback.format_exc(limit=limit))

        return (
            '## Describe the bug\nA clear and concise description.\n\n'
            '## Details\n'
            '*Please verify and redact the details.*\n\n'
            '**Renku version:** ' + __version__ + '\n'
            '**OS:** ' + platform.system() + ' (' + platform.version() + ')\n'
            '**Python:** ' + platform.python_version() + '\n\n'
            '### Traceback\n\n```\n' + tb + '```\n\n'
            '## Additional context\nAdd any other context about the problem.'
        )
def _format_issue_body ( self , limit = - 5 ) : from renku import __version__ re_paths = r'(' + r'|' . join ( [ path or os . getcwd ( ) for path in sys . path ] ) + r')' tb = re . sub ( re_paths , '[...]' , traceback . format_exc ( limit = limit ) ) return ( '## Describe the bug\nA clear and concise description.\n\n' '## Details\n' '*Please verify and redact the details.*\n\n' '**Renku version:** ' + __version__ + '\n' '**OS:** ' + platform . system ( ) + ' (' + platform . version ( ) + ')\n' '**Python:** ' + platform . python_version ( ) + '\n\n' '### Traceback\n\n```\n' + tb + '```\n\n' '## Additional context\nAdd any other context about the problem.' )
Return formatted body.