def attempt_read_and_call(uhandle, method, **keywds):
 line = safe_readline(uhandle)
 passed = (not _fails_conditions(*(line,), **keywds))
 if passed:
  method(line)
 else:
  uhandle.saveline(line)
 return passed

def attempt_read_and_call ( uhandle , method , ** keywds ) : line = safe_readline ( uhandle ) passed = ( not _fails_conditions ( * ( line , ) , ** keywds ) ) if passed : method ( line ) else : uhandle . saveline ( line ) return passed
attempt_read_and_call -> boolean similar to read_and_call .