code: def is_redirect(self):
          '''Return whether the response contains a redirect code.'''
          if self._response:
              status_code = self._response.status_code
              return status_code in self._codes \
                  or status_code in self._repeat_codef is_redirect(self):
          '''Return whether the response contains a redirect code.'''
          if self._response:
              status_code = self._response.status_code
              return status_code in self._codes \
                  or status_code in self._repeat_codes
docs: Return whether the response contains a redirect code.