(test) Fix compatibility with Python 2.4
parent
276588a548
commit
aae02741f9
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue