(a, b)
return os.path.getmtime(a) >= os.path.getmtime(b)
Inquire whether file a was written since file b.
Inquire whether file a was written since file b.
Inquire whether file a was written since file b .
def _newer(a, b):
    """Inquire whether file a was written since file b."""
    if not os.path.exists(a):
        return False
    if not os.path.exists(b):
        return True
    return os.path.getmtime(a) >= os.path.getmtime(b)
def _newer ( a , b ) : if not os . path . exists ( a ) : return False if not os . path . exists ( b ) : return True return os . path . getmtime ( a ) >= os . path . getmtime ( b )