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

Function f_conversion

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

Source from the content-addressed store, hash-verified

589 self.n_formatted_value_attr = n_formatted_value_attr
590
591 def f_conversion(node):
592 fmt_node = node.data[1]
593 if fmt_node == "expr" and fmt_node[0] == "LOAD_STR":
594 data = fmt_node[0].attr
595 else:
596 data = fmt_node.attr
597 node.conversion = FSTRING_CONVERSION_MAP.get(data, "")
598 return node.conversion
599
600 def n_formatted_value1(node):
601 expr = node[0]

Callers 2

n_formatted_value_attrFunction · 0.85
n_formatted_value1Function · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected