fix Python 2.6 compatibility

This commit is contained in:
Eric Moyer 2016-12-12 00:23:59 -08:00
parent e572b9df28
commit 4d939aa8d5

View File

@ -279,14 +279,13 @@ def format_source(debugger_ui, lines, breakpoints):
return result return result
from enum import Enum class ParseState(object):
class ParseState(Enum):
'''States for the ArgumentParser class''' '''States for the ArgumentParser class'''
idle = 1 idle = 1
found_function = 2 found_function = 2
found_open_paren = 3 found_open_paren = 3
class AgumentParser(): class AgumentParser(object):
'''Parse source code tokens and identify function arguments. '''Parse source code tokens and identify function arguments.
This parser implements a state machine which accepts This parser implements a state machine which accepts