More old urllib usage.

This commit is contained in:
Georg Brandl 2008-06-23 11:45:20 +00:00
parent 029986af24
commit 7d84055e25
4 changed files with 19 additions and 19 deletions

View file

@ -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)