1.1 --- a/imiptools/handlers/__init__.py Mon Oct 16 22:09:15 2017 +0200
1.2 +++ b/imiptools/handlers/__init__.py Mon Oct 16 23:11:23 2017 +0200
1.3 @@ -145,7 +145,13 @@
1.4
1.5 # Return the true identities.
1.6
1.7 - return reduce(lambda a, b: a + b, [identities[get_uri(address)] for address in valid], [])
1.8 + attendees = []
1.9 + for address in valid:
1.10 + attendees += identities[get_uri(address)]
1.11 + return attendees
1.12 +
1.13 + # Rely on the mapping keys being accessible as a sequence.
1.14 +
1.15 else:
1.16 return mapping
1.17
1.18 @@ -159,6 +165,9 @@
1.19 if self.recipient:
1.20 addresses = set(map(get_address, mapping))
1.21 return map(get_uri, addresses.intersection([self.recipient]))
1.22 +
1.23 + # Rely on the mapping keys being accessible as a sequence.
1.24 +
1.25 else:
1.26 return mapping
1.27