parameters: (self)
return_statement: return resp
docstring: Internal: get a response from the server.
          Raise various errors if the response indicates an error.
docstring_summary: Internal: get a response from the server.
          Raise various errors if the response indicates an error.
docstring_tokens: Internal : get a response from the server . Raise various errors if the response indicates an error .
function: def getresp(self):
          """Internal: get a response from the server.
          Raise various errors if the response indicates an error."""
          resp = self.getline()
          if self.debugging: print '*resp*', repr(resp)
          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 ) 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