More 3.8 try blocks

This commit is contained in:
rocky
2019-04-11 16:42:28 -04:00
parent 5e1340a2fc
commit a891aa0706
5 changed files with 22 additions and 4 deletions

View File

@@ -1860,7 +1860,7 @@ class SourceWalker(GenericASTTraversal, object):
index = entry[arg]
if isinstance(index, tuple):
assert node[index[0]] == index[1], (
"at %s[%d], expected %s node; got %s" % (
"at %s[%d], expected '%s' node; got '%s'" % (
node.kind, arg, index[1], node[index[0]].kind)
)
index = index[0]