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 a590b47 commit 6d2784cCopy full SHA for 6d2784c
bpython/repl.py
@@ -41,7 +41,6 @@
41
from itertools import takewhile
42
from six import itervalues
43
from types import ModuleType
44
-from enum import Enum
45
46
from pygments.token import Token
47
@@ -389,9 +388,10 @@ class SourceNotFound(Exception):
389
388
"""Exception raised when the requested source could not be found."""
390
391
392
-class LineTypeTranslator(Enum):
+class LineTypeTranslator(object):
393
""" Used when adding a tuple to all_logical_lines, to get input / output values
394
having to actually type/know the strings """
+ # TODO use Enum once we drop support for Python 2
395
396
INPUT = "input"
397
OUTPUT = "output"
0 commit comments