

@classmethod
def from_float(cls, timeout):
    ' Create a new Timeout from a legacy timeout value.\n\n        The timeout value used by httplib.py sets the same timeout on the\n        connect(), and recv() socket requests. This creates a :class:`Timeout`\n        object that sets the individual timeouts to the ``timeout`` value passed\n        to this function.\n\n        :param timeout: The legacy timeout value\n        :type timeout: integer, float, sentinel default object, or None\n        :return: a Timeout object\n        :rtype: :class:`Timeout`\n        '
    return Timeout(read=timeout, connect=timeout)

dataset/ETHPy150Open Bolton-and-Menk-GIS/restapi/restapi/requests/packages/urllib3/util.py Timeout.from_float/original