(self)
return ('location' in self.headers and self.status_code in (codes.moved_permanently, codes.permanent_redirect))
True if this Response one of the permanent versions of redirect.
True if this Response one of the permanent versions of redirect.
True if this Response one of the permanent versions of redirect .
def is_permanent_redirect(self):
        """True if this Response one of the permanent versions of redirect."""
        return ('location' in self.headers and self.status_code in (codes.moved_permanently, codes.permanent_redirect))
def is_permanent_redirect ( self ) : return ( 'location' in self . headers and self . status_code in ( codes . moved_permanently , codes . permanent_redirect ) )