summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/verify-homepage.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/contrib/verify-homepage.py')
-rwxr-xr-xscripts/contrib/verify-homepage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/contrib/verify-homepage.py b/scripts/contrib/verify-homepage.py
index 265ff65d3c..18bb15b277 100755
--- a/scripts/contrib/verify-homepage.py
+++ b/scripts/contrib/verify-homepage.py
@@ -7,7 +7,7 @@
7import sys 7import sys
8import os 8import os
9import subprocess 9import subprocess
10import urllib2 10import urllib.request
11 11
12 12
13# Allow importing scripts/lib modules 13# Allow importing scripts/lib modules
@@ -47,7 +47,7 @@ def verifyHomepage(bbhandler):
47 homepage = data.getVar("HOMEPAGE", True) 47 homepage = data.getVar("HOMEPAGE", True)
48 if homepage: 48 if homepage:
49 try: 49 try:
50 urllib2.urlopen(homepage, timeout=5) 50 urllib.request.urlopen(homepage, timeout=5)
51 except Exception: 51 except Exception:
52 count = count + wgetHomepage(os.path.basename(realfn), homepage) 52 count = count + wgetHomepage(os.path.basename(realfn), homepage)
53 checked.append(realfn) 53 checked.append(realfn)