summaryrefslogtreecommitdiffstats
path: root/Tools/versioncheck
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-23 11:45:20 (GMT)
committerGeorg Brandl <georg@python.org>2008-06-23 11:45:20 (GMT)
commit7d84055e253f96437f1681faa3614ecd204b0a49 (patch)
tree4b131c8058b263f119a3325bbd4e44ed55bff9f8 /Tools/versioncheck
parent029986af249f71a5603110a0f5f0b18d0f335828 (diff)
downloadcpython-7d84055e253f96437f1681faa3614ecd204b0a49.zip
cpython-7d84055e253f96437f1681faa3614ecd204b0a49.tar.gz
cpython-7d84055e253f96437f1681faa3614ecd204b0a49.tar.bz2
More old urllib usage.
Diffstat (limited to 'Tools/versioncheck')
-rw-r--r--Tools/versioncheck/pyversioncheck.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/versioncheck/pyversioncheck.py b/Tools/versioncheck/pyversioncheck.py
index e5983fd..250d49d 100644
--- a/Tools/versioncheck/pyversioncheck.py
+++ b/Tools/versioncheck/pyversioncheck.py
@@ -1,5 +1,5 @@
"""pyversioncheck - Module to help with checking versions"""
-import urllib
+import urllib.request
import email
import sys
@@ -47,7 +47,7 @@ def _check1version(package, url, version, verbose=0):
if verbose >= VERBOSE_EACHFILE:
print(' Checking %s'%url)
try:
- fp = urllib.urlopen(url)
+ fp = urllib.request.urlopen(url)
except IOError as arg:
if verbose >= VERBOSE_EACHFILE:
print(' Cannot open:', arg)