AlkantarClanX12

Your IP : 3.144.116.195


Current Path : /opt/alt/python33/lib64/python3.3/distutils/command/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/distutils/command/__pycache__/check.cpython-33.pyo

�
��flc@s�dZddlmZddlmZypddlmZddlmZddl	m
Z
ddl	mZddlm
Z
Gd	d
�d
e�ZdZWnek
r�dZYnXGdd�de�Zd
S(uCdistutils.command.check

Implements the Distutils 'check' command.
i(uCommand(uDistutilsSetupError(uReporter(uParser(ufrontend(unodes(uStringIOcBs8|EeZdZdddddd�Zdd�ZdS(	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||||f�tj|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
�Zdd�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
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|j�n|jrMtr2|j�qM|jrMtd��qMn|jrt|jdkrttd��ndS(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�|jdd�q�n>|j	r�|j
s�|jdd	�q�n|jd
dd�d
S(u�Ensures 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Cs�t�}t�}tj�j�}d|_d
|_d
|_t	||j
|jd|jd|j
d|jd|j�}tj||d|�}|j|d�y|j||�Wn.tk
r�|jjddd	if�YnX|jS(
u8Returns warnings when the provided data doesn't compile.iustreamudebuguencodingu
error_handlerusourceiuCould not finish the parsing.uNi����i����(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