403Webshell
Server IP : 43.129.54.214  /  Your IP : 216.73.217.113
Web Server : nginx/1.24.0
System : Linux VM-4-108-ubuntu 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/local/qcloud/python/lib/python3.7/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/qcloud/python/lib/python3.7/test/__pycache__/test_normalization.cpython-37.pyc
B

��fK
�@s�ddlmZddlZddlmZddlZddlmZmZdZ	dede	Z
dd	�ZGd
d�de�Z
dd
�Zdd�Zdd�Zdd�Zdd�ZGdd�dej�Zedkr�e��dS)�)�open_urlresourceN)�
HTTPException)�	normalize�unidata_versionzNormalizationTest.txtz"http://www.pythontest.net/unicode/�/cCs|��}t|kS)N)�readliner)ZtestfileZhdr�r�A/usr/local/qcloud/python/lib/python3.7/test/test_normalization.py�
check_versionsr
c@seZdZdS)�
RangeErrorN)�__name__�
__module__�__qualname__rrrr	rsrcCs
td|�S)N�NFC)r)�strrrr	rsrcCs
td|�S)N�NFKC)r)rrrr	rsrcCs
td|�S)N�NFD)r)rrrr	rsrcCs
td|�S)N�NFKD)r)rrrr	rsrcCsDdd�|�d�D�}x|D]}|tjkrt�qWd�dd�|D��S)NcSsg|]}t|d��qS)�)�int)�.0�xrrr	�
<listcomp>szunistr.<locals>.<listcomp>� �cSsg|]}t|��qSr)�chr)rrrrr	r#s)�split�sys�
maxunicoder�join)�datarrrr	�unistrs


r!c@s$eZdZdd�Zdd�Zdd�ZdS)�NormalizationTestc	Cs~yttdtd�}WnLtk
r8|�dt�d��Yn(ttfk
r^|�dt���YnX|�|�|�WdQRXdS)Nzutf-8)�encodingZcheckz"Permission error when downloading z into the test data directoryzCould not retrieve )	r�TESTDATAURLr
�PermissionErrorZskipTest�OSErrorrZfail�run_normalization_tests)�self�testdatarrr	�	test_main&szNormalizationTest.test_maincCs�d}i}�xP|D�]F}d|kr,|�d�d}|��}|s:q|�d�rR|��d}qy*dd�|�d�dd�D�\}}}}}	WnRtk
r�|dkr�yt|�d�d�}Wntk
r�Yn
Xd	||<wYnX|�|t|�ko�t|�ko�t|�kn|�|�|t|�k�o&t|	�kn|�|�|t|�k�o`t|�k�o`t|�kn|�|�|	t|�k�o�t|	�kn|�|�|t|�k�o�t|�k�o�t|�k�o�t|�k�o�t|	�kn|�|�|	t	|�k�o>t	|�k�o>t	|�k�o>t	|�k�o>t	|	�kn|�|dkrd	||<qWxxt
tjd	�D]f}
t
|
�}||k�r��ql|�|t|�k�o�t|�k�o�t|�k�o�t	|�kn|
��qlWdS)
N�#rz@PartcSsg|]}t|��qSr)r!)rrrrr	rBsz=NormalizationTest.run_normalization_tests.<locals>.<listcomp>�;���z@Part1�)r�strip�
startswithrr!Z
assertTruerrrr�rangerrr)r(r)�partZ
part1_data�lineZc1Zc2Zc3Zc4Zc5�c�Xrrr	r'4sL
*6*:*&.&.
z)NormalizationTest.run_normalization_testscCstdd�dS)Nru한글)r)r(rrr	�test_bug_834676fsz!NormalizationTest.test_bug_834676N)rr
rr*r'r6rrrr	r"%s2r"�__main__)Ztest.supportrZunittestZhttp.clientrrZunicodedatarrZTESTDATAFILEr$r
�	Exceptionrrrrrr!ZTestCaser"r�mainrrrr	�<module>s F

Youez - 2016 - github.com/yon3zu
LinuXploit