mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
More old urllib usage.
This commit is contained in:
parent
029986af24
commit
7d84055e25
4 changed files with 19 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue