选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
U e5dßã@sždZddlmZddlmZzTddlmZddlmZddl 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@seZdZd dd„Zdd„ZdS) ÚSilentReporterNrÚasciiÚreplacec Cs"g|_t ||||||||¡dS©N)ÚmessagesrÚ__init__)ÚselfÚsourceÚ report_levelÚ halt_levelÚstreamÚdebugÚencodingÚ error_handler©rú//usr/lib64/python3.8/distutils/command/check.pyrs ÿzSilentReporter.__init__cOs6|j ||||f¡tj|f|ž||j|dœ|—ŽS)N)ÚlevelÚtype)r ÚappendrÚsystem_messageZlevels)rrÚmessageZchildrenÚkwargsrrrrsþÿþzSilentReporter.system_message)Nrr r )Ú__name__Ú __module__Ú __qualname__rrrrrrr s ÿ r TFc@s`eZdZdZdZdddgZdddgZd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dS)Úcheckz6This command checks the meta-data of the package. z"perform some checks on the package)ÚmetadataÚmzVerify meta-data)ÚrestructuredtextÚrzEChecks if long string meta-data syntax are reStructuredText-compliant)ÚstrictÚsz(Will exit with an error if a check failsr#r%r'cCsd|_d|_d|_d|_dS)z Sets default values for options.réN)r%r#r'Ú _warnings©rrrrÚinitialize_options1szcheck.initialize_optionscCsdSr rr+rrrÚfinalize_options8szcheck.finalize_optionscCs|jd7_t ||¡S)z*Counts the number of warnings that occurs.r))r*rÚwarn)rÚmsgrrrr.;sz check.warncCsL|jr| ¡|jr0tr"| ¡n|jr0tdƒ‚|jrH|jdkrHtdƒ‚dS)zRuns the command.zThe docutils package is needed.rzPlease correct your package.N)r#Úcheck_metadatar%Ú HAS_DOCUTILSÚcheck_restructuredtextr'rr*r+rrrÚrun@s z check.runcCsŠ|jj}g}dD]"}t||ƒr(t||ƒs| |¡q|rL| dd |¡¡|jrd|js†| d¡n"|j r||j s†| d¡n | d¡dS)zÏ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. )ÚnameÚversionZurlzmissing required meta-data: %sz, zLmissing meta-data: if 'author' supplied, 'author_email' must be supplied toozTmissing meta-data: if 'maintainer' supplied, 'maintainer_email' must be supplied toozimissing meta-data: either (author and author_email) or (maintainer and maintainer_email) must be suppliedN) Ú distributionr#ÚhasattrÚgetattrrr.ÚjoinZauthorZ author_emailZ maintainerZmaintainer_email)rr#ZmissingÚattrrrrr0Ps   zcheck.check_metadatacCsX|j ¡}| |¡D]>}|d d¡}|dkr8|d}nd|d|f}| |¡qdS)z4Checks if the long string fields are reST-compliant.éÿÿÿÿÚlineNr)z %s (line %s))r6Zget_long_descriptionÚ_check_rst_dataÚgetr.)rÚdataZwarningr<rrrr2ns  zcheck.check_restructuredtextc CsÆ|jjp d}tƒ}tjtfd� ¡}d|_d|_d|_t ||j |j |j |j |j|jd�}tj|||d�}| |d¡z| ||¡Wn:tk r¾}z|j dd|d if¡W5d}~XYnX|jS) z8Returns warnings when the provided data doesn't compile.zsetup.py)Z componentséN)rrrr)rr;z!Could not finish the parsing: %s.Ú)r6Z script_namerrZ OptionParserZget_default_valuesZ tab_widthZpep_referencesZrfc_referencesr rrZwarning_streamrZerror_encodingZerror_encoding_error_handlerrÚdocumentZ note_sourceÚparseÚAttributeErrorr r)rr?Ú source_pathÚparserZsettingsZreporterrBÚerrrr=ys. ú ÿzcheck._check_rst_dataN)rr r!Ú__doc__Z descriptionZ user_optionsZboolean_optionsr,r-r.r3r0r2r=rrrrr"$sü  r"N)rHZdistutils.corerZdistutils.errorsrZdocutils.utilsrZdocutils.parsers.rstrZdocutilsrrÚiorr r1Ú Exceptionr"rrrrÚs