()
| 49 | return (pth for pth in all_filepaths() if pth.find('/.') == -1 and any(pth.endswith(ending) for ending in FILENAME_ENDINGS)) |
| 50 | |
| 51 | def all_filepaths(): |
| 52 | for path, dirlist, filelist in os.walk(TOP): |
| 53 | for filename in filelist: |
| 54 | yield os.path.join(path, filename) |
| 55 | |
| 56 | def replaced_line(pat,sub,original_line): |
| 57 | if DRY_RUN: return original_line |
no test coverage detected