Skip to content

Commit 6d2784c

Browse files
Remove Enum to maintain Python 2 support
1 parent a590b47 commit 6d2784c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/repl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
from itertools import takewhile
4242
from six import itervalues
4343
from types import ModuleType
44-
from enum import Enum
4544

4645
from pygments.token import Token
4746

@@ -389,9 +388,10 @@ class SourceNotFound(Exception):
389388
"""Exception raised when the requested source could not be found."""
390389

391390

392-
class LineTypeTranslator(Enum):
391+
class LineTypeTranslator(object):
393392
""" Used when adding a tuple to all_logical_lines, to get input / output values
394393
having to actually type/know the strings """
394+
# TODO use Enum once we drop support for Python 2
395395

396396
INPUT = "input"
397397
OUTPUT = "output"

0 commit comments

Comments
 (0)