MCPcopy
hub / github.com/rocky/python-uncompyle6 / n_except_suite_finalize

Function n_except_suite_finalize

uncompyle6/semantics/customize36.py:550–563  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

548 FSTRING_CONVERSION_MAP = {1: "!s", 2: "!r", 3: "!a", "X": ":X"}
549
550 def n_except_suite_finalize(node):
551 if node[1] == "returns" and self.hide_internal:
552 # Process node[1] only.
553 # The code after "returns", e.g. node[3], is dead code.
554 # Adding it is wrong as it dedents and another
555 # exception handler "except_stmt" afterwards.
556 # Note it is also possible that the grammar is wrong here.
557 # and this should not be "except_stmt".
558 self.indent_more()
559 self.preorder(node[1])
560 self.indent_less()
561 else:
562 self.default(node)
563 self.prune()
564
565 self.n_except_suite_finalize = n_except_suite_finalize
566

Callers

nothing calls this directly

Calls 4

indent_moreMethod · 0.80
indent_lessMethod · 0.80
preorderMethod · 0.45
defaultMethod · 0.45

Tested by

no test coverage detected