SILENT KILLERPanel

Current Path: > > opt > alt > python27 > lib64 > python2.7 > idlelib > idle_test >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python27/lib64/python2.7/idlelib/idle_test/

NameTypeSizeLast ModifiedActions
README.txt File 5492 bytes January 08 2025 10:43:10.
__init__.py File 650 bytes January 08 2025 10:43:10.
__init__.pyc File 941 bytes January 08 2025 10:43:10.
__init__.pyo File 941 bytes January 08 2025 10:43:10.
htest.py File 13779 bytes January 08 2025 10:43:10.
htest.pyc File 12652 bytes January 08 2025 10:43:10.
htest.pyo File 12652 bytes January 08 2025 10:43:10.
mock_idle.py File 1597 bytes January 08 2025 10:43:10.
mock_idle.pyc File 3009 bytes January 08 2025 10:43:10.
mock_idle.pyo File 3009 bytes January 08 2025 10:43:10.
mock_tk.py File 11574 bytes January 08 2025 10:43:10.
mock_tk.pyc File 12713 bytes January 08 2025 10:43:10.
mock_tk.pyo File 12713 bytes January 08 2025 10:43:10.
test_autocomplete.py File 4922 bytes January 08 2025 10:43:09.
test_autocomplete.pyc File 6120 bytes January 08 2025 10:43:10.
test_autocomplete.pyo File 6120 bytes January 08 2025 10:43:10.
test_autoexpand.py File 4122 bytes January 08 2025 10:43:10.
test_autoexpand.pyc File 4962 bytes January 08 2025 10:43:10.
test_autoexpand.pyo File 4962 bytes January 08 2025 10:43:10.
test_calltips.py File 7140 bytes January 08 2025 10:43:10.
test_calltips.pyc File 12768 bytes January 08 2025 10:43:10.
test_calltips.pyo File 12768 bytes January 08 2025 10:43:10.
test_config_name.py File 2472 bytes January 08 2025 10:43:10.
test_config_name.pyc File 4181 bytes January 08 2025 10:43:09.
test_config_name.pyo File 4181 bytes January 08 2025 10:43:09.
test_configdialog.py File 782 bytes January 08 2025 10:43:10.
test_configdialog.pyc File 1720 bytes January 08 2025 10:43:09.
test_configdialog.pyo File 1720 bytes January 08 2025 10:43:09.
test_delegator.py File 1294 bytes January 08 2025 10:43:10.
test_delegator.pyc File 1358 bytes January 08 2025 10:43:10.
test_delegator.pyo File 1358 bytes January 08 2025 10:43:10.
test_editmenu.py File 3167 bytes January 08 2025 10:43:10.
test_editmenu.pyc File 4569 bytes January 08 2025 10:43:10.
test_editmenu.pyo File 4569 bytes January 08 2025 10:43:10.
test_formatparagraph.py File 14344 bytes January 08 2025 10:43:09.
test_formatparagraph.pyc File 14708 bytes January 08 2025 10:43:10.
test_formatparagraph.pyo File 14708 bytes January 08 2025 10:43:10.
test_grep.py File 2762 bytes January 08 2025 10:43:10.
test_grep.pyc File 3903 bytes January 08 2025 10:43:10.
test_grep.pyo File 3903 bytes January 08 2025 10:43:10.
test_helpabout.py File 1611 bytes January 08 2025 10:43:10.
test_helpabout.pyc File 2441 bytes January 08 2025 10:43:10.
test_helpabout.pyo File 2441 bytes January 08 2025 10:43:10.
test_hyperparser.py File 5684 bytes January 08 2025 10:43:10.
test_hyperparser.pyc File 6942 bytes January 08 2025 10:43:10.
test_hyperparser.pyo File 6942 bytes January 08 2025 10:43:10.
test_idlehistory.py File 5495 bytes January 08 2025 10:43:09.
test_idlehistory.pyc File 8480 bytes January 08 2025 10:43:10.
test_idlehistory.pyo File 8480 bytes January 08 2025 10:43:10.
test_io.py File 9505 bytes January 08 2025 10:43:09.
test_io.pyc File 11949 bytes January 08 2025 10:43:10.
test_io.pyo File 11949 bytes January 08 2025 10:43:10.
test_parenmatch.py File 3822 bytes January 08 2025 10:43:10.
test_parenmatch.pyc File 5664 bytes January 08 2025 10:43:10.
test_parenmatch.pyo File 5664 bytes January 08 2025 10:43:10.
test_pathbrowser.py File 940 bytes January 08 2025 10:43:10.
test_pathbrowser.pyc File 1537 bytes January 08 2025 10:43:09.
test_pathbrowser.pyo File 1537 bytes January 08 2025 10:43:09.
test_rstrip.py File 1613 bytes January 08 2025 10:43:10.
test_rstrip.pyc File 1825 bytes January 08 2025 10:43:09.
test_rstrip.pyo File 1825 bytes January 08 2025 10:43:09.
test_searchdialogbase.py File 5863 bytes January 08 2025 10:43:10.
test_searchdialogbase.pyc File 7035 bytes January 08 2025 10:43:10.
test_searchdialogbase.pyo File 7035 bytes January 08 2025 10:43:10.
test_searchengine.py File 11487 bytes January 08 2025 10:43:10.
test_searchengine.pyc File 13117 bytes January 08 2025 10:43:10.
test_searchengine.pyo File 13117 bytes January 08 2025 10:43:10.
test_text.py File 6744 bytes January 08 2025 10:43:10.
test_text.pyc File 8395 bytes January 08 2025 10:43:09.
test_text.pyo File 8395 bytes January 08 2025 10:43:09.
test_textview.py File 2802 bytes January 08 2025 10:43:10.
test_textview.pyc File 4713 bytes January 08 2025 10:43:10.
test_textview.pyo File 4713 bytes January 08 2025 10:43:10.
test_warning.py File 2757 bytes January 08 2025 10:43:10.
test_warning.pyc File 3390 bytes January 08 2025 10:43:10.
test_warning.pyo File 3390 bytes January 08 2025 10:43:10.
test_widgetredir.py File 4177 bytes January 08 2025 10:43:10.
test_widgetredir.pyc File 6644 bytes January 08 2025 10:43:09.
test_widgetredir.pyo File 6644 bytes January 08 2025 10:43:09.

Reading File: //opt/alt/python27/lib64/python2.7/idlelib/idle_test//mock_tk.pyc

�
�V~gc@s�dZdefd��YZdefd��YZdefd��YZdefd��YZd	d
lmZdefd��YZd
S(s�Classes that replace tkinter gui objects used by an object being tested.

A gui object is anything with a master or parent parameter, which is
typically required in spite of what the doc strings say.
tEventcBseZdZd�ZRS(s�Minimal mock with attributes for testing event handlers.

    This is not a gui object, but is used as an argument for callbacks
    that access attributes of the event passed. If a callback ignores
    the event, other than the fact that is happened, pass 'event'.

    Keyboard, mouse, window, and other sources generate Event instances.
    Event instances have the following attributes: serial (number of
    event), time (of event), type (of event as number), widget (in which
    event occurred), and x,y (position of mouse). There are other
    attributes for specific events, such as keycode for key events.
    tkinter.Event.__doc__ has more but is still not complete.
    cKs|jj|�dS(s,Create event with attributes needed for testN(t__dict__tupdate(tselftkwds((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyt__init__s(t__name__t
__module__t__doc__R(((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyRs
tVarcBs2eZdZdddd�Zd�Zd�ZRS(s)Use for String/Int/BooleanVar: incompletecCs||_||_||_dS(N(tmastertvaluetname(RR
RR((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyRs		cCs
||_dS(N(R(RR((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pytsetscCs|jS(N(R(R((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pytget!sN(RRRtNoneRR
R(((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyR	s	t	Mbox_funccBs#eZdZdd�Zd�ZRS(sGeneric mock for messagebox functions, which all have the same signature.

    Instead of displaying a message box, the mock's call method saves the
    arguments as instance attributes, which test functions can then examime.
    The test can set the result returned to ask function
    cCs
||_dS(N(tresult(RR((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyR+scOs+||_||_||_||_|jS(N(ttitletmessagetargsRR(RRRRR((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyt__call__-s
				N(RRRRRR(((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyR$stMboxcBsVeZdZe�Ze�Ze�Ze�Ze�Ze�Z	e�Z
e�ZRS(s5Mock for tkinter.messagebox with an Mbox_func for each function.

    This module was 'tkMessageBox' in 2.x; hence the 'import as' in  3.x.
    Example usage in test_module.py for testing functions in module.py:
    ---
from idlelib.idle_test.mock_tk import Mbox
import module

orig_mbox = module.tkMessageBox
showerror = Mbox.showerror  # example, for attribute access in test methods

class Test(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        module.tkMessageBox = Mbox

    @classmethod
    def tearDownClass(cls):
        module.tkMessageBox = orig_mbox
    ---
    For 'ask' functions, set func.result return value before calling the method
    that uses the message function. When tkMessageBox functions are the
    only gui alls in a method, this replacement makes the method gui-free,
    (RRRRtaskokcanceltaskquestiontaskretrycanceltaskyesnotaskyesnocancelt	showerrortshowinfotshowwarning(((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyR5s							i����(tTclErrortTextcBs�eZdZdid�Zd�Zdd�Zd�Zd�Zdd�Z	dd�Z
d	�Zd
�Zd�Z
dd�Zd
�Zd�Zd�Zdddd�ZRS(s�A semi-functional non-gui replacement for tkinter.Text text editors.

    The mock's data model is that a text is a list of 
-terminated lines.
    The mock adds an empty string at  the beginning of the list so that the
    index of actual lines start at 1, as with Tk. The methods never see this.
    Tk initializes files with a terminal 
 that cannot be deleted. It is
    invisible in the sense that one cannot move the cursor beyond it.

    This class is only tested (and valid) with strings of ascii chars.
    For testing, we are not concerned with Tk Text's treatment of,
    for instance, 0-width characters or character + accent.
   cKsddg|_dS(s�Initialize mock, non-gui, text-only Text widget.

        At present, all args are ignored. Almost all affect visual behavior.
        There are just a few Text-only options that affect text behavior.
        ts
N(tdata(RR
tcnftkw((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyRgscCsd|j|dd�S(sAReturn string version of index decoded according to current text.s%s.%stendflagi(t_decode(Rtindex((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyR'osicCsqt|ttf�r$t|�}ny|j�}Wn!tk
rWtd|��nXt|j�d}|dkr�|t|j|�dfS|dkr�|j	|�S|j
d�\}}t|�}|dkr�dS||kr�|j	|�St|j|�d}|jd�s'|dkr1||fSt|�}|dkrRd}n||krg|}n||fS(	s7Return a (line, char) tuple of int indexes into self.data.

        This implements .index without converting the result back to a string.
        The result is contrained by the number of lines and linelengths of
        self.data. For many indexes, the result is initially (1, 0).

        The input index may have any of several possible forms:
        * line.char float: converted to 'line.char' string;
        * 'line.char' string, where line and char are decimal integers;
        * 'line.char lineend', where lineend='lineend' (and char is ignored);
        * 'line.end', where end='end' (same as above);
        * 'insert', the positions before terminal 
;
        * 'end', whose meaning depends on the endflag passed to ._endex.
        * 'sel.first' or 'sel.last', where sel is a tag -- not implemented.
        sbad text index "%s"itinserttendt.is lineend(ii(
t
isinstancetfloattbyteststrtlowertAttributeErrorRtlenR"t_endextsplittinttendswith(RR'R%tlastlinetlinetchart
linelength((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyR&ss4



		cCsNt|j�}|dkr%|dfS|d8}|t|j|�|fSdS(sReturn position for 'end' or line overflow corresponding to endflag.

       -1: position before terminal 
; for .insert(), .delete
       0: position after terminal 
; for .get, .delete index 1
       1: same viewed as beginning of non-existent next line (for .index)
       iiN(R1R"(RR%tn((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyR2�s


cCs�|s
dS|jt�}|dddkr=|jd�n|j|d�\}}|j|| }|j||}||d|j|<|d|j|d|d+|j|t|�dc|7<dS(s+Insert chars before the character at index.Ni����s
R!ii(t
splitlinestTruetappendR&R"R1(RR'tcharsR7R8tbeforetafter((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyR(�sc	Cs�|j|�\}}|dkr5||d}}n|j|�\}}||krh|j|||!S|j||g}x/t|d|�D]}|j|j|�q�W|j|j|| �dj|�SdS(s;Return slice from index1 to index2 (default is 'index1+1').iR!N(R&RR"trangeR=tjoin(	Rtindex1tindex2t	startlinet	startchartendlinetendchartlinesti((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyR�scCsO|j|d�\}}|dkr�|t|j|�dkrU||d}}q�|t|j�dkr�|dd}}q�dSn|j|d�\}}||kr�||kr�|j|| |j|||j|<nh||krK|j|| |j|||j|<|d7}x(t||d�D]}|j|=q4WndS(s�Delete slice from index1 to index2 (default is 'index1+1').

        Adjust default index2 ('index+1) for line ends.
        Do not delete the terminal 
 at the very end of self.data ([-1][-1]).
        i����iiN(R&RR1R"RA(RRCRDRERFRGRHRJ((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pytdelete�s"
cCs:|j|�\}}|j|�\}}|dkrX||kpW||koW||kS|dkr�||kp�||ko�||kS|dkr�||kp�||ko�||kS|dkr�||kp�||ko�||kS|dkr||ko||kS|dkr&||kp%||kStd|��dS(Nt<s<=t>s>=s==s!=s=bad comparison operator "%s": must be <, <=, ==, >=, >, or !=(R&R(RRCtopRDtline1tchar1tline2tchar2((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pytcompare�s """"cCsdS(s.Set mark *name* before the character at index.N((RRR'((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pytmark_set
scGsdS(sDelete all marks in markNames.N((Rt	markNames((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyt
mark_unsetR!cCsdS(sARemove tag tagName from all characters between index1 and index2.N((RttagNameRCRD((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyt
tag_removescCsdS(s2Adjust the view of the text according to scan_markN((Rtxty((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pytscan_dragtoR!cCsdS(s&Remember the current X, Y coordinates.N((RRYRZ((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyt	scan_markR!cCsdS(s8Scroll screen to make the character at INDEX is visible.N((RR'((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pytsee!scCsdS(s>Bind to this widget at event sequence a call to function func.N((tsequencetfunctadd((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pytbind(sN(RRRRRR'R&R2R(RRKRSRTRVRXR[R\R]Ra(((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyR Zs 	3								N(	RtobjectRR	RRt_tkinterRR (((s>/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_tk.pyt<module>s#

SILENT KILLER Tool