diff options
| author | David Bremner <david@tethera.net> | 2017-02-26 17:21:31 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-03-22 08:28:09 -0300 |
| commit | 1e982de508c39dae7a61403f536df74c180dfb72 (patch) | |
| tree | ed2d60eafcb3029536f7bbaa06d2b8b78c2852b7 /bindings/python | |
| parent | fc63c1583335d3f09392a37f65edf0b795af2782 (diff) | |
lib: replace n_query_search_threads with status returning version
This function was deprecated in notmuch 0.21. We finally remove the
deprecated API, and rename the status returning version to the simpler
name. The status returning is kept as a deprecated alias.
Diffstat (limited to 'bindings/python')
| -rw-r--r-- | bindings/python/notmuch/query.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bindings/python/notmuch/query.py b/bindings/python/notmuch/query.py index a0f4f64b..3419f626 100644 --- a/bindings/python/notmuch/query.py +++ b/bindings/python/notmuch/query.py @@ -134,10 +134,10 @@ class Query(object): self._assert_query_is_initialized() self._exclude_tag(self._query, _str(tagname)) - """notmuch_query_search_threads_st""" - _search_threads_st = nmlib.notmuch_query_search_threads_st - _search_threads_st.argtypes = [NotmuchQueryP, POINTER(NotmuchThreadsP)] - _search_threads_st.restype = c_uint + """notmuch_query_search_threads""" + _search_threads = nmlib.notmuch_query_search_threads + _search_threads.argtypes = [NotmuchQueryP, POINTER(NotmuchThreadsP)] + _search_threads.restype = c_uint def search_threads(self): """Execute a query for threads @@ -155,7 +155,7 @@ class Query(object): """ self._assert_query_is_initialized() threads_p = NotmuchThreadsP() # == NULL - status = Query._search_threads_st(self._query, byref(threads_p)) + status = Query._search_threads(self._query, byref(threads_p)) if status != 0: raise NotmuchError(status) |
