diff options
| author | Himanshu Shekhar <himanshushekharb16@gmail.com> | 2017-04-29 23:39:35 +0530 |
|---|---|---|
| committer | Himanshu Shekhar <himanshushekharb16@gmail.com> | 2017-04-29 23:39:35 +0530 |
| commit | 866a326aaddbcc1903e2d1eebe065b5d4be3fc36 (patch) | |
| tree | 27401d6fa97972f11f7518710992424b2a168b26 /scripts/internal | |
| parent | 83d7e252694d7da9c57d40e3d83ef180894e803e (diff) | |
| download | psutil-866a326aaddbcc1903e2d1eebe065b5d4be3fc36.tar.gz | |
break regex to two lines by backslash
Diffstat (limited to 'scripts/internal')
| -rwxr-xr-x | scripts/internal/check_broken_links.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/internal/check_broken_links.py b/scripts/internal/check_broken_links.py index 1bf502f9..3f178bbd 100755 --- a/scripts/internal/check_broken_links.py +++ b/scripts/internal/check_broken_links.py @@ -47,8 +47,8 @@ import requests HERE = os.path.abspath(os.path.dirname(__file__)) -REGEX = r'(?:http|ftp|https)?://' -REGEX += r'(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+' +REGEX = r'(?:http|ftp|https)?://' \ + r'(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+' def get_urls(filename): |
