From d877e856d35db919e3ef105c6ce5ebdc09273061 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 22 Jun 2014 20:13:36 +0200 Subject: [PATCH] Fix feed.items.append since pep8 The underscore naming convention was not yet applied in that function --- morss/feeds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morss/feeds.py b/morss/feeds.py index 5ef10d8..3dc6b7e 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -273,8 +273,8 @@ class FeedList(object): return new for key in self.childClass.__dict__: - if key[:3] == 'set': - attr = key[3:].lower() + if key.startswith('set_'): + attr = key[4:] if hasattr(cousin, attr): setattr(new, attr, getattr(cousin, attr)) elif attr in cousin: