forked from github/pelican
simplify some code in utils.files_changed
This commit is contained in:
parent
f6870f4a01
commit
93d0ad25d1
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ def files_changed(path, extensions):
|
||||||
"""Return True if the files have changed since the last check"""
|
"""Return True if the files have changed since the last check"""
|
||||||
|
|
||||||
def with_extension(f):
|
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):
|
def file_times(path):
|
||||||
"""Return the last time files have been modified"""
|
"""Return the last time files have been modified"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue