MCPcopy Index your code
hub / github.com/rocky/python-uncompyle6 / n_formatted_value

Function n_formatted_value

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

Source from the content-addressed store, hash-verified

565 self.n_except_suite_finalize = n_except_suite_finalize
566
567 def n_formatted_value(node):
568 if node[0] in ("LOAD_STR", "LOAD_CONST"):
569 value = node[0].attr
570 if isinstance(value, tuple):
571 self.write(node[0].attr)
572 else:
573 self.write(escape_string(node[0].attr))
574 self.prune()
575 else:
576 self.default(node)
577
578 self.n_formatted_value = n_formatted_value
579

Callers

nothing calls this directly

Calls 3

escape_stringFunction · 0.90
writeMethod · 0.45
defaultMethod · 0.45

Tested by

no test coverage detected