diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2016-05-31 19:55:43 -0300 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-06-06 20:22:26 -0400 |
commit | 3e4870f8bd6186f3d0821f392a0dafc5d5247ad4 (patch) | |
tree | 51f3ea8031c490cfc39c3ece7b2f013dbe3cdb88 /common/src/leap/soledad/common/couch/__init__.py | |
parent | 3f9e88b0c4d03aba4e406143813777f14635e20d (diff) |
[style] remove misused lambdas
Pep8 was warning about assignment of lambdas. These lambdas should
be partials
Diffstat (limited to 'common/src/leap/soledad/common/couch/__init__.py')
-rw-r--r-- | common/src/leap/soledad/common/couch/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/src/leap/soledad/common/couch/__init__.py b/common/src/leap/soledad/common/couch/__init__.py index 18ed8a19..5bda8071 100644 --- a/common/src/leap/soledad/common/couch/__init__.py +++ b/common/src/leap/soledad/common/couch/__init__.py @@ -24,6 +24,7 @@ import re import uuid import binascii import time +import functools from StringIO import StringIO @@ -340,7 +341,7 @@ class CouchDatabase(object): # This will not be needed when/if we switch from python-couchdb to # paisley. time.strptime('Mar 8 1917', '%b %d %Y') - get_one = lambda doc_id: self.get_doc(doc_id, check_for_conflicts) + get_one = functools.partial(self.get_doc, check_for_conflicts=check_for_conflicts) docs = [THREAD_POOL.apply_async(get_one, [doc_id]) for doc_id in doc_ids] for doc in docs: |