AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.141.27.97
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python2.7/site-packages/ansible/compat/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /lib/python2.7/site-packages/ansible/compat/tests/mock.pyo
�
��\c@`s�ddlmZmZmZeZddlZyddlTWn=ek
r{yddl	TWq|ek
rwe
d�q|XnXejd
kr�ejdkr�da
d�Zddd	�ZndS(i(tabsolute_importtdivisiontprint_functionN(t*s=You need the mock library installed on python2.x to run testsiicc`s�t|t�rdnd}g|j|�D]}||^q+}|d|kr^|d }n|dd |d<x|D]}|VqwWdS(Ns
i����(t
isinstancetbytestsplit(t	read_datatseptltdata_as_listtline((s=/usr/lib/python2.7/site-packages/ansible/compat/tests/mock.pyt_iterate_read_data2s&

tc`s6��fd�}���fd�}��fd�}tdkr�ddl}ttt|j��jtt|j����an|dkr�t	dddt
�}nt	dt����j_t
���d�j_d�j_d�j_d�j_|�j_|��j_|�j_�|_|S(	s
        A helper function to create a mock to replace the use of `open`. It works
        for `open` called directly or used as a context manager.

        The `mock` argument is the mock object to configure. If `None` (the
        default) then a `MagicMock` will be created for you, with the API limited
        to methods or attributes available on standard file handles.

        `read_data` is a string for the `read` methoddline`, and `readlines` of the
        file handle to return.  This is an empty string by default.
        c`s&�jjdk	r�jjSt��S(N(t	readlinestreturn_valuetNonetlist(targstkwargs(t_datathandle(s=/usr/lib/python2.7/site-packages/ansible/compat/tests/mock.pyt_readlines_side_effectRs
c`s2�jjdk	r�jjSt���j��S(N(treadRRttypetjoin(RR(RRR(s=/usr/lib/python2.7/site-packages/ansible/compat/tests/mock.pyt_read_side_effectWs
c3`sG�jjdk	r-xtr)�jjVqWnx�D]}|Vq4WdS(N(treadlineRRtTrue(R(RR(s=/usr/lib/python2.7/site-packages/ansible/compat/tests/mock.pyt_readline_side_effect\s
	
iNtnametopentspec(t	file_specRt_ioRtsettdirt
TextIOWrappertuniontBytesIOt	MagicMockRt	__enter__RRtwriteRRRtside_effect(tmockRRRRR"((RRRs=/usr/lib/python2.7/site-packages/ansible/compat/tests/mock.pyt	mock_openFs(6	(i(iii(t
__future__RRRRt
__metaclass__tsyst
unittest.mocktImportErrorR,tprinttversion_infoRR!RR-(((s=/usr/lib/python2.7/site-packages/ansible/compat/tests/mock.pyt<module>s

	

Anon7 - 2022
AnonSec Team