We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b878e97 commit ab1bbb4Copy full SHA for ab1bbb4
jmespath/parser.py
@@ -133,9 +133,6 @@ def _expression(self, binding_power=0):
133
current_token = self._current_token()
134
return left
135
136
- def _token_nud_string_literal(self, token):
137
- return ast.literal(token['value'])
138
-
139
def _token_nud_literal(self, token):
140
return ast.literal(token['value'])
141
@@ -435,16 +432,6 @@ def _parse_dot_rhs(self, binding_power):
435
432
"Expecting: %s, got: %s" % (allowed,
436
433
actual_type))
437
434
438
- def _assert_not_token(self, *token_types):
439
- if self._current_token() in token_types:
440
- t = self._lookahead_token(0)
441
- lex_position = t['start']
442
- actual_value = t['value']
443
- actual_type = t['type']
444
- raise exceptions.ParseError(
445
- lex_position, actual_value, actual_type,
446
- "Token %s not allowed to be: %s" % (actual_type, token_types))
447
448
def _error_nud_token(self, token):
449
if token['type'] == 'eof':
450
raise exceptions.IncompleteExpressionError(
0 commit comments