<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> from __future__ import division <EOL> from __future__ import print_function <EOL> import phlsys_tryloop <EOL> import abdt_logging <EOL> def tryloop ( f , identifier , detail ) : <EOL> """<STR_LIT>""" <EOL> def on_tryloop_exception ( e , delay ) : <EOL> abdt_logging . on_retry_exception ( identifier , detail , e , delay ) <EOL> delays = phlsys_tryloop . make_default_short_retry ( ) <EOL> return phlsys_tryloop . try_loop_delay ( <EOL> f , delays , onException = on_tryloop_exception ) <EOL> def critical_tryloop ( f , identifier , detail ) : <EOL> """<STR_LIT>""" <EOL> def on_tryloop_exception ( e , delay ) : <EOL> abdt_logging . on_retry_exception ( identifier , detail , e , delay ) <EOL> delays = phlsys_tryloop . make_default_endless_retry ( ) <EOL> return phlsys_tryloop . try_loop_delay ( <EOL> f , delays , onException = on_tryloop_exception ) </s>
