File "check.cpython-33.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python33/lib64/python3.3/distutils/command/__pycache__/check.cpython-33.pyc
File size: 7.15 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


flc@sdZddlmZddlmZypddlmZddlmZddl	m
Z
ddl	mZddlm
Z
Gd	d
d
eZdZWnek
rdZYnXGdddeZd
S(uCdistutils.command.check

Implements the Distutils 'check' command.
i(uCommand(uDistutilsSetupError(uReporter(uParser(ufrontend(unodes(uStringIOcBs8|EeZdZddddddZddZdS(	uSilentReporteriuasciiureplacec	Cs/g|_tj||||||||dS(N(umessagesuReporteru__init__(uselfusourceureport_levelu
halt_levelustreamudebuguencodingu
error_handler((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyu__init__s	uSilentReporter.__init__cOsB|jj||||ftj|d|d|j|||S(Nulevelutype(umessagesuappendunodesusystem_messageulevels(uselfulevelumessageuchildrenukwargs((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyusystem_messages
uSilentReporter.system_messageN(u__name__u
__module__u__qualname__uNoneu__init__usystem_message(u
__locals__((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyuSilentReportersuSilentReportercBs|EeZdZdZdZdddgZddd	gZdd
ZddZddZ	ddZ
ddZddZddZ
dS(uchecku6This command checks the meta-data of the package.
    u"perform some checks on the packageumetadataumuVerify meta-dataurestructuredtexturuEChecks if long string meta-data syntax are reStructuredText-compliantustrictusu(Will exit with an error if a check failscCs(d|_d|_d|_d|_dS(u Sets default values for options.iiN(urestructuredtextumetadataustrictu	_warnings(uself((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyuinitialize_options1s			ucheck.initialize_optionscCsdS(N((uself((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyufinalize_options8sucheck.finalize_optionscCs|jd7_tj||S(u*Counts the number of warnings that occurs.i(u	_warningsuCommanduwarn(uselfumsg((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyuwarn;su
check.warncCsx|jr|jn|jrMtr2|jqM|jrMtdqMn|jrt|jdkrttdndS(uRuns the command.uThe docutils package is needed.iuPlease correct your package.N(umetadataucheck_metadataurestructuredtextuHAS_DOCUTILSucheck_restructuredtextustrictuDistutilsSetupErroru	_warnings(uself((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyurun@s	
	
	u	check.runcCs|jj}g}x<dD]4}t||o:t||s|j|qqW|rt|jddj|n|jr|js|jddqn>|j	r|j
s|jdd	qn|jd
ddd
S(uEnsures that all required elements of meta-data are supplied.

        name, version, URL, (author and author_email) or
        (maintainer and maintainer_email)).

        Warns if any are missing.
        unameuversionuurlumissing required meta-data: %su, u)missing meta-data: if 'author' supplied, u#'author_email' must be supplied toou-missing meta-data: if 'maintainer' supplied, u''maintainer_email' must be supplied toou4missing meta-data: either (author and author_email) u%or (maintainer and maintainer_email) umust be suppliedN(unameuversionuurl(udistributionumetadatauhasattrugetattruappenduwarnujoinuauthoruauthor_emailu
maintainerumaintainer_email(uselfumetadataumissinguattr((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyucheck_metadataPs$
						ucheck.check_metadatacCsz|jj}xd|j|D]S}|djd}|dkrQ|d}nd|d|f}|j|qWdS(u4Checks if the long string fields are reST-compliant.iulineu%s (line %s)Ni(udistributionuget_long_descriptionu_check_rst_dataugetuNoneuwarn(uselfudatauwarninguline((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyucheck_restructuredtextns
ucheck.check_restructuredtextcCst}t}tjj}d|_d
|_d
|_t	||j
|jd|jd|j
d|jd|j}tj||d|}|j|dy|j||Wn.tk
r|jjddd	ifYnX|jS(
u8Returns warnings when the provided data doesn't compile.iustreamudebuguencodingu
error_handlerusourceiuCould not finish the parsing.uNii(uStringIOuParserufrontenduOptionParseruget_default_valuesu	tab_widthuNoneupep_referencesurfc_referencesuSilentReporterureport_levelu
halt_leveluwarning_streamudebuguerror_encodinguerror_encoding_error_handlerunodesudocumentunote_sourceuparseuAttributeErrorumessagesuappend(uselfudatausource_pathuparserusettingsureporterudocument((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyu_check_rst_datays*									
ucheck._check_rst_dataN(umetadataumuVerify meta-data(urestructuredtexturuEChecks if long string meta-data syntax are reStructuredText-compliant(ustrictusu(Will exit with an error if a check fails(u__name__u
__module__u__qualname__u__doc__udescriptionuuser_optionsuboolean_optionsuinitialize_optionsufinalize_optionsuwarnurunucheck_metadataucheck_restructuredtextu_check_rst_data(u
__locals__((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyucheck$s	ucheckNTF(u__doc__udistutils.coreuCommandudistutils.errorsuDistutilsSetupErrorudocutils.utilsuReporterudocutils.parsers.rstuParserudocutilsufrontendunodesuiouStringIOuSilentReporteruTrueuHAS_DOCUTILSu	ExceptionuFalseucheck(((u</opt/alt/python33/lib64/python3.3/distutils/command/check.pyu<module>s