def check_float(string):
    """
    Helper function for checking if a string can be converted to a float.

    :param string: string to be verified as a float
    :returns: True if the string can be converted to a float, False otherwise
    """
    try:
        float(string)
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open openstack/swift/swift/common/constraints.py/check_float