mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-19 01:23:07 +08:00
Remove some TODOs that were fixed
This commit is contained in:
@@ -147,7 +147,7 @@ class BaseParser(object):
|
||||
raise NotImplementedError("Error Recovery is not implemented")
|
||||
else:
|
||||
type_, value, start_pos, prefix = token
|
||||
error_leaf = tree.ErrorLeaf('TODO %s' % type_, value, start_pos, prefix)
|
||||
error_leaf = tree.ErrorLeaf(type_, value, start_pos, prefix)
|
||||
raise ParserSyntaxError('SyntaxError: invalid syntax', error_leaf)
|
||||
|
||||
def convert_node(self, nonterminal, children):
|
||||
|
||||
@@ -286,7 +286,6 @@ def _make_transition(token_namespace, reserved_syntax_strings, label):
|
||||
# Either a keyword or an operator
|
||||
assert label[0] in ('"', "'"), label
|
||||
assert not label.startswith('"""') and not label.startswith("'''")
|
||||
# TODO use literal_eval instead of a simple eval.
|
||||
value = literal_eval(label)
|
||||
try:
|
||||
return reserved_syntax_strings[value]
|
||||
|
||||
Reference in New Issue
Block a user