mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Fix bug detected by AMK: Types should be types.
This commit is contained in:
parent
16c8eccfcf
commit
982209dc69
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
"""pyversioncheck - Module to help with checking versions"""
|
||||
import Types
|
||||
import types
|
||||
import rfc822
|
||||
import urllib
|
||||
import sys
|
||||
|
@ -36,7 +36,7 @@ def versioncheck(package, url, version, verbose=0):
|
|||
def checkonly(package, url, version, verbose=0):
|
||||
if verbose >= VERBOSE_EACHFILE:
|
||||
print '%s:'%package
|
||||
if type(url) == Types.StringType:
|
||||
if type(url) == types.StringType:
|
||||
ok, newversion, fp = _check1version(package, url, version, verbose)
|
||||
else:
|
||||
for u in url:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue