You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
3.8 exception handling
This commit is contained in:
@@ -1815,7 +1815,6 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
# except_cond3 is only in Python <= 2.6
|
||||
n_except_cond3 = n_except_cond2
|
||||
|
||||
|
||||
def template_engine(self, entry, startnode):
|
||||
"""The format template interpetation engine. See the comment at the
|
||||
beginning of this module for the how we interpret format
|
||||
@@ -1862,7 +1861,7 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
if isinstance(index, tuple):
|
||||
assert node[index[0]] == index[1], (
|
||||
"at %s[%d], expected %s node; got %s" % (
|
||||
node.kind, arg, node[index[0]].kind, index[1])
|
||||
node.kind, arg, index[1], node[index[0]].kind)
|
||||
)
|
||||
index = index[0]
|
||||
assert isinstance(index, int), (
|
||||
|
Reference in New Issue
Block a user