diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2018-08-01 02:21:45 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2018-08-01 22:27:53 +0200 |
commit | 06f1295f7a2d9ab51e63be763f74c2c2868e5027 (patch) | |
tree | 427188cff8ba7d1cd3284040748a6615860d8908 /alot/db/manager.py | |
parent | 3c0097c377cb939a80bb0d9c30915e16c6dcb5bd (diff) |
db/manager: Append underscore to method named async
"async" is a reserved keyword in Python 3.7, so cannot be used for
method names.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'alot/db/manager.py')
-rw-r--r-- | alot/db/manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/db/manager.py b/alot/db/manager.py index 80af88bd..941d5c62 100644 --- a/alot/db/manager.py +++ b/alot/db/manager.py @@ -311,7 +311,7 @@ class DBManager(object): db = Database(path=self.path) return {k[6:]: v for k, v in db.get_configs('query.')} - def async(self, cbl, fun): + def async_(self, cbl, fun): """ return a pair (pipe, process) so that the process writes `fun(a)` to the pipe for each element `a` in the iterable returned @@ -403,7 +403,7 @@ class DBManager(object): if exclude_tags: for tag in exclude_tags: q.exclude_tag(tag) - return self.async(q.search_threads, (lambda a: a.get_thread_id())) + return self.async_(q.search_threads, (lambda a: a.get_thread_id())) def query(self, querystring): """ |