nntp/nntp.py
def xpat_gen(self, header, msgid_range, *pattern):
        """Generator for the XPAT command.
        """
        args = " ".join(
            [header, utils.unparse_msgid_range(msgid_range)] + list(pattern)
        )

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

        for line in self.info_gen(code, message):
            yield line.strip()
def xpat_gen(self, header, msgid_range, *pattern):
        """Generator for the XPAT command.
        """
        args = " ".join(
            [header, utils.unparse_msgid_range(msgid_range)] + list(pattern)
        )

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

        for line in self.info_gen(code, message):
            yield line.strip()
def xpat_gen ( self , header , msgid_range , * pattern ) : args = " " . join ( [ header , utils . unparse_msgid_range ( msgid_range ) ] + list ( pattern ) ) code , message = self . command ( "XPAT" , args ) if code != 221 : raise NNTPReplyError ( code , message ) for line in self . info_gen ( code , message ) : yield line . strip ( )
Generator for the XPAT command.
Generator for the XPAT command .