Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PythonConsoleLexer bug: reordered traceback text #2329

@dbader

Description

@dbader

Example:

Lexer: PythonConsoleLexer (Python console session)

Input:

Traceback (most recent call last):
    ...
KeyboardInterrupt

Result:

<div class="demo-highlight"><pre><span></span><span class="nc">KeyboardInterrupt</span>
<span class="gt">Traceback (most recent call last):</span>
<span class="w">    </span><span class="o">...</span>
</pre></div>

Screen Shot 2023-01-31 at 10 09 23 AM

👆 Notice how the KeyboardInterrupt gets moved up above the Traceback line in the output

Versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions