MCPcopy Create free account
hub / github.com/catboost/catboost / iter_py_modules

Function iter_py_modules

library/python/runtime_py3/__res.py:208–215  ·  view source on GitHub ↗
(with_keys=False)

Source from the content-addressed store, hash-verified

206
207
208def iter_py_modules(with_keys=False):
209 for key, path in iter_keys(b'resfs/src/resfs/file/' + py_prefix):
210 if path.endswith(b'.py'): # It may also end with '.pyc'.
211 mod = _s(path[:-3].replace(b'/', b'.'))
212 if with_keys:
213 yield key, mod
214 else:
215 yield mod
216
217
218def py_src_key(filename):

Callers 1

__init__Method · 0.85

Calls 2

iter_keysFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected