Kaydet (Commit) 982209dc authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix bug detected by AMK: Types should be types.

üst 16c8eccf
"""pyversioncheck - Module to help with checking versions""" """pyversioncheck - Module to help with checking versions"""
import Types import types
import rfc822 import rfc822
import urllib import urllib
import sys import sys
...@@ -36,7 +36,7 @@ def versioncheck(package, url, version, verbose=0): ...@@ -36,7 +36,7 @@ def versioncheck(package, url, version, verbose=0):
def checkonly(package, url, version, verbose=0): def checkonly(package, url, version, verbose=0):
if verbose >= VERBOSE_EACHFILE: if verbose >= VERBOSE_EACHFILE:
print '%s:'%package print '%s:'%package
if type(url) == Types.StringType: if type(url) == types.StringType:
ok, newversion, fp = _check1version(package, url, version, verbose) ok, newversion, fp = _check1version(package, url, version, verbose)
else: else:
for u in url: for u in url:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment