authomatic/core.py
def expire_soon(self, seconds):
        """
        Returns ``True`` if credentials expire sooner than specified.

        :param int seconds:
            Number of seconds.

        :returns:
            ``True`` if credentials expire sooner than specified,
            else ``False``.

        """

        if self.expiration_time:
            return self.expiration_time < int(time.time()) + int(seconds)
        else:
            return False
def expire_soon(self, seconds):
        if self.expiration_time:
            return self.expiration_time < int(time.time()) + int(seconds)
        else:
            return False
def expire_soon ( self , seconds ) : if self . expiration_time : return self . expiration_time < int ( time . time ( ) ) + int ( seconds ) else : return False
Returns ``True`` if credentials expire sooner than specified.

        :param int seconds:
            Number of seconds.

        :returns:
            ``True`` if credentials expire sooner than specified,
            else ``False``.
Returns True if credentials expire sooner than specified .