changeset 66:b08d159e35c7

Sanitize gcm_no_compare_fields[]
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 11 Jul 2016 18:40:17 +0300
parents 1eefa9b5e945
children c582522d2dcc
files multimerge.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/multimerge.py	Mon Jul 11 18:36:10 2016 +0300
+++ b/multimerge.py	Mon Jul 11 18:40:17 2016 +0300
@@ -32,6 +32,11 @@
 ###
 ### Misc. helper functions
 ###
+gcm_no_compare_fields = [
+    "id", "iCalUID", "etag", "sequence", "gcm_cal_id",
+    "created", "updated", "htmlLink", "organizer",
+]
+
 
 ## Wrapper for print() that does not break when redirecting stdin/out
 ## because of piped output not having a defined encoding. We default
@@ -125,7 +130,6 @@
     return None
 
 
-gcm_no_compare_fields = [u"id", u"iCalUID", "etag", "sequence", "created", "htmlLink", "gcm_cal_id", "organizer", "updated"]
 
 def gcm_compare_events(ev1, ev2):
     for field in ev1: