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 : |
� � �\c @` s� d d l m Z m Z m Z e Z d d l Z y d d l TWn= e k r{ y d d l TWq| e k rw e d � q| Xn Xe j d k r� e j d k r� d a d � Z d d d � Z n d S( i ( t absolute_importt divisiont print_functionN( t *s= You need the mock library installed on python2.x to run testsi i c c` s� t | t � r d n d } g | j | � D] } | | ^ q+ } | d | k r^ | d } n | d d | d <x | D] } | Vqw Wd S( Ns i����( t isinstancet bytest split( t read_datat sept lt data_as_listt line( ( s= /usr/lib/python2.7/site-packages/ansible/compat/tests/mock.pyt _iterate_read_data2 s & t c ` s6 � � f d � } � � � f d � } � � f d � } t d k r� d d l } t t t | j � � j t t | j � � � � a n | d k r� t d d d t � } n t d t � � � � 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&