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

Function n_formatted_value_attr

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

Source from the content-addressed store, hash-verified

578 self.n_formatted_value = n_formatted_value
579
580 def n_formatted_value_attr(node):
581 f_conversion(node)
582 fmt_node = node.data[3]
583 if fmt_node == "expr" and fmt_node[0] == "LOAD_STR":
584 node.string = escape_format(fmt_node[0].attr)
585 else:
586 node.string = fmt_node
587 self.default(node)
588
589 self.n_formatted_value_attr = n_formatted_value_attr
590

Callers

nothing calls this directly

Calls 3

f_conversionFunction · 0.85
escape_formatFunction · 0.85
defaultMethod · 0.45

Tested by

no test coverage detected