From aae02741f9895a8af07c929b390fe6300d952524 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 23 Feb 2016 09:15:39 -0500 Subject: [PATCH] (test) Fix compatibility with Python 2.4 --- Tests/Integration/carddav.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/Integration/carddav.py b/Tests/Integration/carddav.py index 45df2a707..4c381e2df 100644 --- a/Tests/Integration/carddav.py +++ b/Tests/Integration/carddav.py @@ -75,7 +75,9 @@ class Carddav: self.cards = [] fields = content['headers'][0] for h in content['headers'][1:]: - card = {f: h[i] for i, f in enumerate(fields)} + card = {} + for i, f in enumerate(fields): + card[f] = h[i] self.cards.append(card) else: self.cards = []