diff options
Diffstat (limited to 'scripts/contrib')
| -rwxr-xr-x | scripts/contrib/verify-homepage.py | 4 |
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 @@ | |||
| 7 | import sys | 7 | import sys |
| 8 | import os | 8 | import os |
| 9 | import subprocess | 9 | import subprocess |
| 10 | import urllib2 | 10 | import 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) |
