MCPcopy Create free account
hub / github.com/aio-libs/multidict / walk

Method walk

tools/upgrade_pythoncapi.py:654–663  ·  view source on GitHub ↗
(self, paths)

Source from the content-addressed store, hash-verified

652 self.exitcode = 1
653
654 def walk(self, paths):
655 for path in paths:
656 if os.path.isdir(path):
657 for filename in self._walk_dir(path):
658 yield filename
659 elif os.path.exists(path):
660 yield path
661 else:
662 self.warning(f"Path {path} does not exist")
663 self.exitcode = 1
664
665 def get_latest_header(self, base_dir):
666 target = os.path.join(base_dir, PYTHONCAPI_COMPAT_H)

Callers 3

mainMethod · 0.95
_walk_dirMethod · 0.80

Calls 2

_walk_dirMethod · 0.95
warningMethod · 0.95

Tested by 1