parameters: (self)
return_statement: return resp
docstring: Internal: get a response from the server.
          Raise various errors if the response indicates an error.
          Returns a unicode string.
docstring_summary: Internal: get a response from the server.
          Raise various errors if the response indicates an error.
          Returns a unicode string.
docstring_tokens: Internal : get a response from the server . Raise various errors if the response indicates an error . Returns a unicode string .
function: def _getresp(self):
          """Internal: get a response from the server.
          Raise various errors if the response indicates an error.
          Returns a unicode string."""
          resp = self._getline()
          if self.debugging: print('*resp*', repr(resp))
          resp = resp.decode(self.encoding, self.errors)
          c = resp[:1]
          if c == '4':
              raise NNTPTemporaryError(resp)
          if c == '5':
              raise NNTPPermanentError(resp)
          if c not in '123':
              raise NNTPProtocolError(resp)
          return resp
function_tokens: def _getresp ( self ) : resp = self . _getline ( ) if self . debugging : print ( '*resp*' , repr ( resp ) ) resp = resp . decode ( self . encoding , self . errors ) c = resp [ : 1 ] if c == '4' : raise NNTPTemporaryError ( resp ) if c == '5' : raise NNTPPermanentError ( resp ) if c not in '123' : raise NNTPProtocolError ( resp ) return resp