From ab0da10e564c5e34df489cb3e829ad1993b0e5f5 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Fri, 30 May 2014 17:17:10 +0200 Subject: [PATCH] Simplify code --- vdirsyncer/utils/vobject.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vdirsyncer/utils/vobject.py b/vdirsyncer/utils/vobject.py index d1303c1..a634106 100644 --- a/vdirsyncer/utils/vobject.py +++ b/vdirsyncer/utils/vobject.py @@ -20,7 +20,7 @@ def _process_properties(*s): rv.add(key + ':') rv.add(key + ';') - return frozenset(rv) + return tuple(rv) IGNORE_PROPS = _process_properties( @@ -48,8 +48,7 @@ def normalize_item(text, ignore_props=IGNORE_PROPS, use_icalendar=True): return u'\r\n'.join(line.strip() for line in lines if line.strip() and - not any(line.startswith(p) - for p in IGNORE_PROPS)) + not line.startswith(IGNORE_PROPS)) def hash_item(text):