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

Function find_none

uncompyle6/semantics/helper.py:98–106  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

96 return globs, nonlocals
97
98def find_none(node):
99 for n in node:
100 if isinstance(n, SyntaxTree):
101 if n not in ('return_stmt', 'return_if_stmt'):
102 if find_none(n):
103 return True
104 elif n.kind == 'LOAD_CONST' and n.pattr is None:
105 return True
106 return False
107
108def flatten_list(node):
109 """

Callers 5

make_function2Function · 0.90
make_function3_annotateFunction · 0.90
make_function3Function · 0.90
make_function36Function · 0.90
make_function1Function · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected