def read_and_call(uhandle, method, **keywds):
 line = safe_readline(uhandle)
 errmsg = _fails_conditions(*(line,), **keywds)
 if (errmsg is not None):
  raise ValueError(errmsg)
 method(line)

def read_and_call ( uhandle , method , ** keywds ) : line = safe_readline ( uhandle ) errmsg = _fails_conditions ( * ( line , ) , ** keywds ) if ( errmsg is not None ) : raise ValueError ( errmsg ) method ( line )
read_and_call read a line from uhandle .