(value)
Convert a version string (got from wiki page) to a floating point number.
Convert a version string (got from wiki page) to a floating point number.
Convert a version string ( got from wiki page ) to a floating point number .
def parse_version_wiki(value):
    """Convert a version string (got from wiki page) to a floating point number."""
    value = parse_data_wiki(value)
    value = value.split(": ")[1]
    for token in value.split():
        try:
            return decimal.Decimal(token)
        except ValueError:
            pass
    msg = "Failed to convert version string to number! (%r)"
    raise ValueError(msg % value)
def parse_version_wiki ( value ) : value = parse_data_wiki ( value ) value = value . split ( ": " ) [ 1 ] for token in value . split ( ) : try : return decimal . Decimal ( token ) except ValueError : pass msg = "Failed to convert version string to number! (%r)" raise ValueError ( msg % value )