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

Method _select_from

tests/mini_toolbox/pathlib.py:666–679  ·  view source on GitHub ↗
(self, parent_path, is_dir, exists, scandir)

Source from the content-addressed store, hash-verified

664 _Selector.__init__(self, child_parts)
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
676 yield
677
678 for x in _try_except_permissionerror_iter(try_iter, except_iter):
679 yield x
680
681
682class _WildcardSelector(_Selector):

Callers 3

select_fromMethod · 0.45
try_iterMethod · 0.45
try_iterMethod · 0.45

Calls 1

Tested by

no test coverage detected