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

Method _walk_dir

tools/upgrade_pythoncapi.py:635–652  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

633 return True
634
635 def _walk_dir(self, path):
636 empty = True
637
638 for dirpath, dirnames, filenames in os.walk(path):
639 # Don't walk into .tox
640 for ignore_name in IGNORE_DIRS:
641 try:
642 dirnames.remove(ignore_name)
643 except ValueError:
644 pass
645 for filename in filenames:
646 if is_c_filename(filename):
647 yield os.path.join(dirpath, filename)
648 empty = False
649
650 if empty:
651 self.warning(f"Directory {path} doesn't contain any C file")
652 self.exitcode = 1
653
654 def walk(self, paths):
655 for path in paths:

Callers 1

walkMethod · 0.95

Calls 3

warningMethod · 0.95
is_c_filenameFunction · 0.85
walkMethod · 0.80

Tested by

no test coverage detected