From 16389a6f7f4afbd3856a1f6803a046ca8127b4c0 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Fri, 28 Oct 2011 02:23:08 +0200 Subject: Fix news.py not to load vim swapfiles --- scripts/news.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/news.py b/scripts/news.py index ca9dfb4..1f291c7 100644 --- a/scripts/news.py +++ b/scripts/news.py @@ -6,7 +6,8 @@ import os class NewsPlugin: def __init__(self): newspath = os.path.join(template.path, 'news') - newsfiles = [ os.path.join(newspath, entry) for entry in sorted(os.listdir(newspath)) ] + newsfiles = [ os.path.join(newspath, entry) for entry in sorted(os.listdir(newspath)) \ + if not entry.startswith('.') ] self._news = [] for newsfile in reversed(newsfiles): -- cgit v1.2.1