def is_newer_b(a, bfiles):
if isinstance(bfiles, basestring):<EOL><INDENT>bfiles = [bfiles]<EOL><DEDENT>if not op.exists(a): return False<EOL>if not all(op.exists(b) for b in bfiles): return False<EOL>atime = os.stat(a).st_mtime <EOL>for b in bfiles:<EOL><INDENT>if atime > os.stat(b).st_mtime:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
check that all b files have been modified more recently than a