diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-07-29 16:11:33 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-07-29 16:11:33 +0200 |
commit | 229ab30fc0226b277b040e6398936856e3f66dcf (patch) | |
tree | 685794d2c96a4c453997dff031d9e7f8110a7f62 /mail/src | |
parent | c07fa6959abda3cbf185186a41e9bca51c14031b (diff) |
[bug] fixed syntax error in models.py
The lambdas take two args, so it needs to be a tuple.
Furthermore filter needs a collection.
Diffstat (limited to 'mail/src')
-rw-r--r-- | mail/src/leap/mail/adaptors/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/src/leap/mail/adaptors/models.py b/mail/src/leap/mail/adaptors/models.py index c5b838af..2bf9e601 100644 --- a/mail/src/leap/mail/adaptors/models.py +++ b/mail/src/leap/mail/adaptors/models.py @@ -115,8 +115,8 @@ class DocumentWrapper(object): def _normalize_dict(_dict): items = _dict.items() - items = filter(lambda k, v: not callable(v), items) - items = filter(lambda k, v: not k.startswith('_')) + items = filter(lambda (k, v): not callable(v), items) + items = filter(lambda (k, v): not k.startswith('_'), items) items = [(k, v) if not k.endswith('_') else (k[:-1], v) for (k, v) in items] items = [(k.replace('-', '_'), v) for (k, v) in items] |