We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baf2426 commit b244532Copy full SHA for b244532
bpython/repl.py
@@ -36,6 +36,7 @@
36
import traceback
37
from itertools import takewhile
38
from types import ModuleType
39
+from enum import Enum
40
41
from pygments.token import Token
42
from pygments.lexers import Python3Lexer
@@ -355,12 +356,10 @@ class SourceNotFound(Exception):
355
356
"""Exception raised when the requested source could not be found."""
357
358
-class LineTypeTranslator:
359
+class LineTypeTranslator(Enum):
360
"""Used when adding a tuple to all_logical_lines, to get input / output values
361
having to actually type/know the strings"""
362
- # TODO use Enum once we drop support for Python 2
363
-
364
INPUT = "input"
365
OUTPUT = "output"
366
0 commit comments