summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2011-10-28 02:23:08 +0200
committerChristian Franke <nobody@nowhere.ws>2011-10-28 02:25:47 +0200
commit16389a6f7f4afbd3856a1f6803a046ca8127b4c0 (patch)
treee32c4939dc8ff9de885c4f0cd47774aaf85a8f33
parent03d70e52539b9d515cc687fd73f3887de945f83e (diff)
Fix news.py not to load vim swapfiles
-rw-r--r--scripts/news.py3
1 files changed, 2 insertions, 1 deletions
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):