diff options
author | Georg Brandl <georg@python.org> | 2015-01-20 07:55:32 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2015-01-20 07:55:32 +0100 |
commit | 84912b7d20dacce310b32eb7ad01fc503828921e (patch) | |
tree | 38444c964950830721296fb80def0c30d4183095 /pygments/lexers/python.py | |
parent | d92befa4604a46a99eac39b276ad14d161282de9 (diff) | |
download | pygments-84912b7d20dacce310b32eb7ad01fc503828921e.tar.gz |
Fix Python tracebacks getting duplicated in the console lexer (closes #1068).
Diffstat (limited to 'pygments/lexers/python.py')
-rw-r--r-- | pygments/lexers/python.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/python.py b/pygments/lexers/python.py index 259d1a9c..01ab1e7d 100644 --- a/pygments/lexers/python.py +++ b/pygments/lexers/python.py @@ -378,6 +378,7 @@ class PythonConsoleLexer(Lexer): tb = 0 for i, t, v in tblexer.get_tokens_unprocessed(curtb): yield tbindex+i, t, v + curtb = '' else: yield match.start(), Generic.Output, line if curcode: |