def xpat_gen(self, header, msgid_range, *pattern):
args = "<STR_LIT:U+0020>".join(<EOL>[header, utils.unparse_msgid_range(msgid_range)] + list(pattern)<EOL>)<EOL>code, message = self.command("<STR_LIT>", args)<EOL>if code != <NUM_LIT>:<EOL><INDENT>raise NNTPReplyError(code, message)<EOL><DEDENT>for line in self.info_gen(code, message):<EOL><INDENT>yield line.strip()<EOL><DEDENT>
Generator for the XPAT command.