def timeout(self, timeout):
        """ Set request timeout in seconds (or fractions of a second) """

        if timeout is None:
            self._timeout = None  # no timeout
            return
        self._timeout = float(timeout)
def timeout ( self , timeout ) : if timeout is None : self . _timeout = None return self . _timeout = float ( timeout )
Set request timeout in seconds (or fractions of a second)