Skip to content

Commit

Permalink
Fix typos in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
aisk committed Jun 12, 2024
1 parent 5c1a30b commit 205859d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thriftpy2/parser/lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def t_LITERAL(t):
if s[i] in maps:
val += maps[s[i]]
else:
msg = 'Unexcepted escaping characher: %s' % s[i]
msg = 'Unexpected escaping character: %s' % s[i]
raise ThriftLexerError(msg)
else:
val += s[i]
Expand Down
2 changes: 1 addition & 1 deletion thriftpy2/parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def p_const_ref(p):
father = child
child = getattr(child, name, None)
if child is None:
raise ThriftParserError('Cann\'t find name %r at line %d'
raise ThriftParserError('Can\'t find name %r at line %d'
% (p[1], p.lineno(1)))

if _get_ttype(child) is None or _get_ttype(father) == TType.I32:
Expand Down

0 comments on commit 205859d

Please sign in to comment.