From b80e122e9e45d05f6aaf67b1cb1438ea9a505c72 Mon Sep 17 00:00:00 2001 From: Alex Ehlke Date: Sun, 27 Jan 2019 21:42:40 -0500 Subject: [PATCH] Allow any rel value for entry links, as permitted by spec --- feedgen/entry.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/feedgen/entry.py b/feedgen/entry.py index ab3e84b..b9d20b6 100644 --- a/feedgen/entry.py +++ b/feedgen/entry.py @@ -440,8 +440,7 @@ def link(self, link=None, replace=False, **kwargs): link, set(['href', 'rel', 'type', 'hreflang', 'title', 'length']), set(['href']), - {'rel': ['alternate', 'enclosure', 'related', 'self', 'via']}, - {'rel': 'alternate'}) + defaults={'rel': 'alternate'}) # RSS only needs one URL. We use the first link for RSS: for l in self.__atom_link: if l.get('rel') == 'alternate':