ðÕYfxã @sËdZddlmZddlmZypddlmZddlmZddl m Z ddl m Z ddl m Z Gd d „d eƒZd ZWnek r°d ZYnXGd d„deƒZdS)zCdistutils.command.check Implements the Distutils 'check' command. é)ÚCommand)ÚDistutilsSetupError)ÚReporter)ÚParser)Úfrontend)Únodes)ÚStringIOc@s4eZdZdddddd„Zdd„ZdS) ÚSilentReporterNrÚasciiÚreplacec Cs/g|_tj||||||||ƒdS)N)ÚmessagesrÚ__init__)ÚselfÚsourceÚ report_levelÚ halt_levelÚstreamÚdebugÚencodingÚ error_handler©rúr>)rrrZ OptionParserZget_default_valuesZ tab_widthZpep_referencesZrfc_referencesr rrZwarning_streamrZerror_encodingZerror_encoding_error_handlerrÚdocumentZ note_sourceÚparseÚAttributeErrorr r)rrAÚ source_pathÚparserZsettingsZreporterrDÚerrrr?ys*           *zcheck._check_rst_dataN)r"r#r$)r%r&r')r(r)r*)rrr Ú__doc__Z descriptionZ user_optionsZboolean_optionsr-r.r/r4r1r3r?rrrrr!$s        r!N)rJZdistutils.corerZdistutils.errorsrZdocutils.utilsrZdocutils.parsers.rstrZdocutilsrrÚiorr r2Ú Exceptionr!rrrrÚs