nntp/nntp.py
def head(self, msgid_article=None):
        """HEAD command.
        """
        args = None
        if msgid_article is not None:
            args = utils.unparse_msgid_article(msgid_article)

        code, message = self.command("HEAD", args)
        if code != 221:
            raise NNTPReplyError(code, message)

        return utils.parse_headers(self.info_gen(code, message))
def head(self, msgid_article=None):
        args = None
        if msgid_article is not None:
            args = utils.unparse_msgid_article(msgid_article)

        code, message = self.command("HEAD", args)
        if code != 221:
            raise NNTPReplyError(code, message)

        return utils.parse_headers(self.info_gen(code, message))
def head ( self , msgid_article = None ) : args = None if msgid_article is not None : args = utils . unparse_msgid_article ( msgid_article ) code , message = self . command ( "HEAD" , args ) if code != 221 : raise NNTPReplyError ( code , message ) return utils . parse_headers ( self . info_gen ( code , message ) )
HEAD command.
HEAD command .