<s> from __future__ import absolute_import <EOL> import time <EOL> import salt . utils . decorators <EOL> def _fallbackfunc ( ) : <EOL> return False , '<STR_LIT>' <EOL> def working_function ( ) : <EOL> '''<STR_LIT>''' <EOL> return True <EOL> @ salt . utils . decorators . depends ( True ) <EOL> def booldependsTrue ( ) : <EOL> '''<STR_LIT>''' <EOL> return True <EOL> @ salt . utils . decorators . depends ( False ) <EOL> def booldependsFalse ( ) : <EOL> return True <EOL> @ salt . utils . decorators . depends ( '<STR_LIT:time>' ) <EOL> def depends ( ) : <EOL> ret = { '<STR_LIT>' : True , <EOL> '<STR_LIT:time>' : time . time ( ) } <EOL> return ret <EOL> @ salt . utils . decorators . depends ( '<STR_LIT>' ) <EOL> def missing_depends ( ) : <EOL> return True <EOL> @ salt . utils . decorators . depends ( '<STR_LIT:time>' , fallback_function = _fallbackfunc ) <EOL> def depends_will_not_fallback ( ) : <EOL> '''<STR_LIT>''' <EOL> ret = { '<STR_LIT>' : True , <EOL> '<STR_LIT:time>' : time . time ( ) } <EOL> return ret <EOL> @ salt . utils . decorators . depends ( '<STR_LIT>' , fallback_function = _fallbackfunc ) <EOL> def missing_depends_will_fallback ( ) : <EOL> ret = { '<STR_LIT>' : True , <EOL> '<STR_LIT:time>' : time . time ( ) } <EOL> return ret </s>
