(self, paths)
| 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) |