Permalink
Browse files

Fix AssertionError due to unhandled type in word.StaticEval().

  • Loading branch information...
Andy Chu
Andy Chu committed Aug 30, 2018
1 parent 807f0d9 commit b39592daae6ec2d2cbb198833403697b4f0cfe7a
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/word.py
View
@@ -76,11 +76,11 @@ def _EvalWordPart(part):
elif part.tag in (
word_part_e.CommandSubPart, word_part_e.SimpleVarSub,
word_part_e.BracedVarSub, word_part_e.TildeSubPart,
word_part_e.ArithSubPart):
word_part_e.ArithSubPart, word_part_e.ExtGlobPart):
return False, '', False
else:
raise AssertionError(part.tag)
raise AssertionError(part.__class.__name__)
def StaticEval(w):

0 comments on commit b39592d

Please sign in to comment.