From 5d727c26e529cfec3949d6b3574bc8acd62ee20b Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Mon, 19 May 2014 17:00:58 +0200 Subject: [PATCH] Actually only filter out PRODID key It might happen that we filter out a SUMMARY line or similar which coincidentally contains "PRODID" --- vdirsyncer/utils/vobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vdirsyncer/utils/vobject.py b/vdirsyncer/utils/vobject.py index 86a80fc..0824804 100644 --- a/vdirsyncer/utils/vobject.py +++ b/vdirsyncer/utils/vobject.py @@ -22,8 +22,8 @@ def hash_item(text): hashable = u'\r\n'.join(line.strip() for line in lines if line.strip() and - u'PRODID' not in line and - u'VERSION' not in line) + not line.startswith(u'PRODID:') and + not line.startswith(u'VERSION:')) return hashlib.sha256(hashable.encode('utf-8')).hexdigest()