B 0c@s:ddlmZGdddZGdddZGdddZdS) )Textc@seZdZdddZddZdS)FuncNFcCs"d|_||_||_d|_d|_dS)Nr)calledresult return_selfargskwds)selfrrr @/opt/alt/python37/lib64/python3.7/idlelib/idle_test/mock_idle.py__init__s z Func.__init__cOsB|jd7_||_||_t|jtr.|jn|jr8|S|jSdS)N)rrr isinstancer BaseExceptionr)r rrr r r __call__s z Func.__call__)NF)__name__ __module__ __qualname__r rr r r r rs rc@seZdZdddZddZdS)EditorNcCs|pt|_t|_dS)N)rtext UndoDelegatorZundo)r flistfilenamekeyrootrr r r r +s zEditor.__init__cCs |jd}|jd}||fS)Nz1.0end)rindex)r firstZlastr r r get_selection_indices0s  zEditor.get_selection_indices)NNNNN)rrrr rr r r r r(s rc@seZdZddZddZdS)rcGsdS)Nr )rr r r undo_block_start:szUndoDelegator.undo_block_startcGsdS)Nr )rr r r undo_block_stop<szUndoDelegator.undo_block_stopN)rrrrr r r r r r6srN)Zidlelib.idle_test.mock_tkrrrrr r r r s