def _check1version(package, url, version, verbose=0):
    if verbose >= VERBOSE_EACHFILE:
        print '  Checking %s'%url
    try:
        fp = urllib.urlopen(url)
    except IOError, arg:
        if verbose >= VERBOSE_EACHFILE:
            print '    Cannot open:', arg
        return -1, None, None
    msg = rfc822.Message(fp, seekable=0)
    newversion = msg.getheader('current-version')
    if not newversion:
        if VERBOSE_EACHFILE >= verbose:
            print '    No "Current-Version:" header in URL or URL not found'
        return -1, None, None
    version = version.lower().strip()
    newversion = newversion.lower().strip()
    if version == newversion:
        if verbose >= VERBOSE_EACHFILE:
            print '    Version identical (%s)'%newversion
        return 1, version, fp
    else:
        if verbose >= VERBOSE_EACHFILE:
            print '    Versions different (installed: %s, new: %s)'% \
                        (version, newversion)
        return 0, newversion, fp
dataset/ETHPy150Open Southpaw-TACTIC/TACTIC/src/context/client/tactic-api-python-4.0.api04/Tools/versioncheck/pyversioncheck.py/_check1version/swapped operands of `>=`