diff options
| author | Himanshu Shekhar <himanshushekharb16@gmail.com> | 2017-04-29 23:50:52 +0530 |
|---|---|---|
| committer | Himanshu Shekhar <himanshushekharb16@gmail.com> | 2017-04-29 23:50:52 +0530 |
| commit | fbeaf949f50aee7b7e8a14d15aab0ae9c1ad975b (patch) | |
| tree | e0a46d09c1cc95952b669d67addc0fc489875815 /scripts/internal | |
| parent | 9f639ad83c166aab1ea2f6bb047692d9678e764d (diff) | |
| download | psutil-fbeaf949f50aee7b7e8a14d15aab0ae9c1ad975b.tar.gz | |
change output target from file to stdout
Diffstat (limited to 'scripts/internal')
| -rwxr-xr-x | scripts/internal/check_broken_links.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/scripts/internal/check_broken_links.py b/scripts/internal/check_broken_links.py index 783d6263..bab8f3c2 100755 --- a/scripts/internal/check_broken_links.py +++ b/scripts/internal/check_broken_links.py @@ -107,15 +107,12 @@ def main(): print() if len(fails) == 0: - print("All links are valid. Cheers!") + print("all links are valid. cheers!") else: - print("Total :", len(fails), "fails!") - print("Writing failed urls to fails.txt") - with open("../../fails.txt", 'w') as f: - for fail in fails: - f.write(fail[1] + ' : ' + fail[0] + os.linesep) - f.write('-' * 20) - f.write(os.linesep*2) + print("total :", len(fails), "fails!") + for fail in fails: + print(fail[1] + ' : ' + fail[0] + os.linesep) + print('-' * 20) if __name__ == '__main__': |
