(test) Fix compatibility with Python 2.4

pull/201/head
Francis Lachapelle 2016-02-23 09:15:39 -05:00
parent 276588a548
commit aae02741f9
1 changed files with 3 additions and 1 deletions

View File

@ -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 = []