def untilConcludes(f, *a, **kw):
 while True:
  try:
   return f(*a, **kw)
  except (IOError, OSError) as e:
   if (e.args[0] == errno.EINTR):
    continue
   raise

def untilConcludes ( f , * a , ** kw ) : while True : try : return f ( * a , ** kw ) except ( IOError , OSError ) as e : if ( e . args [ 0 ] == errno . EINTR ) : continue raise
call c{f} with the given arguments .