MCPcopy Index your code
hub / github.com/cool-RR/PySnooper / try_iter

Method try_iter

tests/mini_toolbox/pathlib.py:667–672  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

665
666 def _select_from(self, parent_path, is_dir, exists, scandir):
667 def try_iter():
668 path = parent_path._make_child_relpath(self.name)
669 if (is_dir if self.dironly else exists)(path):
670 for p in self.successor._select_from(
671 path, is_dir, exists, scandir):
672 yield p
673
674 def except_iter(exc):
675 return

Callers

nothing calls this directly

Calls 2

_make_child_relpathMethod · 0.80
_select_fromMethod · 0.45

Tested by

no test coverage detected