summaryrefslogtreecommitdiff
path: root/scripts/internal
diff options
context:
space:
mode:
authorHimanshu Shekhar <himanshushekharb16@gmail.com>2017-04-29 23:39:35 +0530
committerHimanshu Shekhar <himanshushekharb16@gmail.com>2017-04-29 23:39:35 +0530
commit866a326aaddbcc1903e2d1eebe065b5d4be3fc36 (patch)
tree27401d6fa97972f11f7518710992424b2a168b26 /scripts/internal
parent83d7e252694d7da9c57d40e3d83ef180894e803e (diff)
downloadpsutil-866a326aaddbcc1903e2d1eebe065b5d4be3fc36.tar.gz
break regex to two lines by backslash
Diffstat (limited to 'scripts/internal')
-rwxr-xr-xscripts/internal/check_broken_links.py4
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):