def checkThisFile(f): if gitutils.isFileEmpty(f): return False for checker in FilesToCheck: if checker.search(f): return True return False
def checkThisFile(f): # This check covers things like symlinks which point to files that DNE if not (os.path.exists(f)): return False if gitutils and gitutils.isFileEmpty(f): return False for checker in FilesToCheck: if checker.search(f): return True return False