From 744cce341375d8beabe3bd67bdbd21ce8a05db73 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 30 Jun 2013 12:33:48 -0400 Subject: [PATCH] feed: Use splitlines() instead of split('\r\n') in Feed.process() The specs require '\r\n', but we don't have to be that strict. --- pycalendar/feed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycalendar/feed.py b/pycalendar/feed.py index b411d34..e0d2bc3 100644 --- a/pycalendar/feed.py +++ b/pycalendar/feed.py @@ -121,7 +121,7 @@ class Feed (set): self, len(self.content))) entry = None stack = [] - for i,line in enumerate(self.content.split('\r\n')): + for i,line in enumerate(self.content.splitlines()): if line.startswith('BEGIN:'): _type = line.split(':', 1)[1] _LOG.info('{!r}: begin {}'.format(self, _type)) -- 2.26.2