def check_restructuredtext(self):
<EOL>Command.warn(<EOL>self,<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>)<EOL>data = self.distribution.get_long_description()<EOL>content_type = getattr(<EOL>self.distribution.metadata, '<STR_LIT>', None)<EOL>if content_type:<EOL><INDENT>content_type, _ = cgi.parse_header(content_type)<EOL>if content_type != '<STR_LIT>':<EOL><INDENT>self.warn(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % content_type)<EOL>return<EOL><DEDENT><DEDENT>if not data or data == '<STR_LIT>':<EOL><INDENT>self.warn(<EOL>"<STR_LIT>")<EOL>return<EOL><DEDENT>stream = _WarningStream()<EOL>markup = render(data, stream=stream)<EOL>if markup is None:<EOL><INDENT>self.warn(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % stream)<EOL>return<EOL><DEDENT>self.announce(<EOL>"<STR_LIT>",<EOL>level=distutils.log.INFO)<EOL>
Checks if the long string fields are reST-compliant.