| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,6 +36,7 @@ | |||
| 36 | 36 | import traceback | |
| 37 | 37 | from itertools import takewhile | |
| 38 | 38 | from types import ModuleType | |
| 39 | + from enum import Enum | ||
| 39 | 40 | ||
| 40 | 41 | from pygments.token import Token | |
| 41 | 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.""" | |
| 356 | 357 | ||
| 357 | 358 | ||
| 358 | - class LineTypeTranslator: | ||
| 359 | + class LineTypeTranslator(Enum): | ||
| 359 | 360 | """Used when adding a tuple to all_logical_lines, to get input / output values | |
| 360 | 361 | having to actually type/know the strings""" | |
| 361 | 362 | ||
| 362 | - # TODO use Enum once we drop support for Python 2 | ||
| 363 | - | ||
| 364 | 363 | INPUT = "input" | |
| 365 | 364 | OUTPUT = "output" | |
| 366 | 365 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments