From 93d0ad25d1e8bf64197a7fe8938554cf75659031 Mon Sep 17 00:00:00 2001 From: derdon Date: Sat, 14 May 2011 17:08:04 +0200 Subject: [PATCH] simplify some code in utils.files_changed --- pelican/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/utils.py b/pelican/utils.py index 41733149..e9c1816c 100644 --- a/pelican/utils.py +++ b/pelican/utils.py @@ -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"""