Merge pull request #119 from derdon/master

simplified a one-liner
This commit is contained in:
Alexis Metaireau 2011-05-14 08:34:02 -07:00
commit 34d29e6192

View file

@ -206,7 +206,7 @@ def files_changed(path, extensions):
"""Return True if the files have changed since the last check"""
def with_extension(f):
return True if True in [f.endswith(ext) for ext in extensions] else False
return any(f.endswith(ext) for ext in extensions)
def file_times(path):
"""Return the last time files have been modified"""