403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.144
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python313/Lib/test/test_pyrepl/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/test_pyrepl/__pycache__/test_keymap.cpython-313.opt-1.pyc
�

��i����SSKrSSKrSSKJrJrJrJrJr "SS\R5r	"SS\R5r
g)�N)�	_keynames�_escapes�
parse_keys�compile_keymap�KeySpecErrorc�D�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)�
TestParseKeys�c�"�[R[R-Vs/sHoU/4PM	 nnUH?up4URUSU35 UR	[U5U5 SSS5 MA gs snf!,(df   MX=f)zUEnsure that single ascii characters or single digits are parsed as single characters.� should be parsed as N)�string�
ascii_letters�digits�subTest�assertEqualr)�self�key�
test_cases�test_key�
expected_keyss     �1C:\Python313\\Lib\test\test_pyrepl\test_keymap.py�test_single_character�#TestParseKeys.test_single_characters{��.4�.B�.B�V�]�]�.R�S�.R�s�S�E�l�.R�
�S�'1�#�H�����
�*?�
��O�P�� � ��H�!5�}�E�Q�P�(2��T�P�P�s�A:�A?�?
B	c��[R"5VVs/sHupSUS3U/4PM nnnUH?upEURUSU35 UR[	U5U5 SSS5 MA gs snnf!,(df   MY=f)z�Ensure that keynames are parsed to their corresponding mapping.

A keyname is expected to be of the following form: \<keyname> such as \<left>
which would get parsed as "left".
z\<�>rN)r�itemsrrr)r�keyname�parsed_keynamerrrs      r�
test_keynames�TestParseKeys.test_keynamess���[d�Zi�Zi�Zk�l�Zk�?V�w��W�I�Q�'�.�)9�:�Zk�
�l�'1�#�H�����
�*?�
��O�P�� � ��H�!5�}�E�Q�P�(2��m�P�P�s�A7�A=�=
B	c��[R"5VVs/sH
upSU3U/4PM nnnUH?upEURUSU35 UR[	U5U5 SSS5 MA gs snnf!,(df   MY=f)zIEnsure that escaping sequences are parsed to their corresponding mapping.�\rN)rrrrr)r�escape�
parsed_escaperrrs      r�test_escape_sequences�#TestParseKeys.test_escape_sequencess���T\�Tb�Tb�Td�e�Td�;P�6��F�8�}�}�o�6�Td�
�e�'1�#�H�����
�*?�
��O�P�� � ��H�!5�}�E�Q�P�(2��f�P�P�s�A6�
A<�<
B	c	�Z�/SQnUR[R5 SVs/sHnSU3[[	U5S-54PM! nnUH?upEURUSU35 UR
[U5U5 SSS5 MA gs snf!,(df   MX=f)z@Ensure that supported control sequences are parsed successfully.)�@�[�]r"�^�_z\<space>z	\<delete>�z\C-�rN)�extendr
r�chr�ordrrr)r�keysrrrrs      r�test_control_sequences�$TestParseKeys.test_control_sequences!s���I�����F�(�(�)�FH�I�b�s��c�U�|�S��S��D��%9�:�b�
�I�'1�#�H�����
�*?�
��O�P�� � ��H�!5�}�E�Q�P�(2��J�P�P�s�&B�-B�
B*	c��UR[S5SS/5 UR[S5SS/5 UR[S5SS/5 g)Nz\M-a��az\M-b�bz\M-c�c�rr�rs r�test_meta_sequences�!TestParseKeys.test_meta_sequences*sM������G�,�v�s�m�<�����G�,�v�s�m�<�����G�,�v�s�m�<�c�x�UR[S5/SQ5 UR[S5/SQ5 g)Nz\C-a\n\<up>)��
�upz
\M-a\t\<down>)r6r7�	�downr:r;s r�test_combinations�TestParseKeys.test_combinations/s0������$4�5�7K�L�����$6�7�9T�Ur>c�B�/SQnUHrup#URUSU35 UR[5n[U5 SSS5 UR	U[WR55 SSS5 Mt g!,(df   N@=f!,(df   M�=f)N)
)z\Ca�\C must be followed by `-')z\carH)z\C-\C-zdoubled \C-)z\Ma�\M must be followed by `-')z\marI)z\M-\M-zdoubled \M-)z\<leftzunterminated \<)z\<unsupported>zunrecognised keyname)u\大zunknown backslash escape)z\C-\<backspace>z\C- followed by invalid keyz should give error )r�assertRaisesrr�assertIn�str�	exception)r�cases�	test_keys�expected_err�es     r�test_keyspec_errors�!TestParseKeys.test_keyspec_errors3s~��
��(-�#�I������+>�|�n�M�N��&�&�|�4���y�)�5��
�
�l�C����,<�=�O�N�(-�4�4��O�N�s"�B�A>�-B�>
B�B�
B	c��/SQnUH,nUR[5 [U5 SSS5 M. g!,(df   M@=f)N)r"z\Cz\C-\C)rJ�
IndexErrorr)rrrOs   r�test_index_errors�TestParseKeys.test_index_errorsFs6��-�
�#�I��"�"�:�.��9�%�/�.�$�.�.�s	�8�
A	r-N)
�__name__�
__module__�__qualname__�__firstlineno__rrr%r3r<rErRrV�__static_attributes__r-r>rr	r	s/��F�	F�F�F�=�
V�>�&&r>r	c�J�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
g)
�TestCompileKeymap�Mc�B�0n[U5nURU05 g)N�rr�r�keymap�results   r�test_empty_keymap�#TestCompileKeymap.test_empty_keymapNs!������'�������$r>c�J�SS0n[U5nURUSS05 g)N�a�actionrarbs   r�test_single_keymap�$TestCompileKeymap.test_single_keymapSs+����!����'������$��!1�2r>c�R�SSS00n[U5nURUSSS005 g)Nrh�brirarbs   r�test_nested_keymap�$TestCompileKeymap.test_nested_keymapXs5����x�(�)����'������$��x�(8�!9�:r>c�R�SSS00n[U5nURUSSS005 g)Nrhr>rirarbs   r�test_empty_value�"TestCompileKeymap.test_empty_value]s3����h��(����'������$��h��!8�9r>c�V�SSSS.0n[U5nURUSSSS.05 g)Nrh�action1�action2)r>rmrarbs   r�test_multiple_empty_values�,TestCompileKeymap.test_multiple_empty_valuesbs5���i�y�9�:����'������$�i�y�(I�!J�Kr>c�V�SSSS.0n[U5nURUSSSS.05 g)Nrhrtru)rm�crarbs   r�test_multiple_keymaps�'TestCompileKeymap.test_multiple_keymapsgs5���y�	�:�;����'������$�y�	�(J�!K�Lr>c�Z�SSSS000n[U5nURUSSSS0005 g)Nrhrmryrirarbs   r�test_nested_multiple_keymaps�.TestCompileKeymap.test_nested_multiple_keymapsls?�����h�/�0�1����'������$���h�/?�(@�!A�Br>c��SSS.nUR[5 [U5 SSS5 g!,(df   g=f)Nr9�d)rhsab)rJrr)r�kms  r�test_clashing_definitions�+TestCompileKeymap.test_clashing_definitionsqs.���c�
*��
�
�
�|�
,��2��-�
,�
,�s�0�
>c�|�UR[5 [SS05 SSS5 g!,(df   g=f)N�{r7)rJ�	TypeErrorrr;s r�test_non_bytes_key�$TestCompileKeymap.test_non_bytes_keyvs(��
�
�
�y�
)��C��:�&�*�
)�
)�s�-�
;r-N)rXrYrZr[rerjrnrqrvrzr}r�r�r\r-r>rr^r^Ms2��%�
3�
;�
:�
L�
M�
C�
�
'r>r^)r
�unittest�_pyrepl.keymaprrrrr�TestCaser	r^r-r>r�<module>r�s8��
��X�X�C&�H�%�%�C&�L+'��)�)�+'r>

Youez - 2016 - github.com/yon3zu
LinuXploit