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

Function n_call

uncompyle6/semantics/customize26_27.py:48–65  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

46
47 # FIXME: this should be a transformation
48 def n_call(node):
49 mapping = self._get_mapping(node)
50 key = node
51 for i in mapping[1:]:
52 key = key[i]
53 pass
54 if key.kind == "CALL_FUNCTION_1":
55 # A function with one argument. If this is a generator,
56 # no parenthesis is needed.
57 args_node = node[-2]
58 if args_node == "expr":
59 n = args_node[0]
60 if n == "generator_exp":
61 node.kind = "call_generator"
62 pass
63 pass
64
65 self.default(node)
66
67 self.n_call = n_call
68

Callers

nothing calls this directly

Calls 2

_get_mappingMethod · 0.45
defaultMethod · 0.45

Tested by

no test coverage detected