MCPcopy Index your code
hub / github.com/python/cpython / _not_empty

Function _not_empty

PC/layout/support/pymanager.py:10–20  ·  view source on GitHub ↗
(n, key=None)

Source from the content-addressed store, hash-verified

8
9
10def _not_empty(n, key=None):
11 result = []
12 for i in n:
13 if key:
14 i_l = i[key]
15 else:
16 i_l = i
17 if not i_l:
18 continue
19 result.append(i)
20 return result
21
22
23def calculate_install_json(ns, *, for_embed=False, for_test=False):

Callers 1

calculate_install_jsonFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…