Remove some TODOs that were fixed

This commit is contained in:
Dave Halter
2018-07-03 19:28:05 +02:00
parent e05d7fd59f
commit 29b6232541
2 changed files with 1 additions and 2 deletions

View File

@@ -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):

View File

@@ -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]