python notmuch2 bindings exclude_tags not added correctly to query

Subject: python notmuch2 bindings exclude_tags not added correctly to query

Date: Wed, 23 Dec 2020 02:34:22 +0100

To: notmuch@notmuchmail.org

Cc:

From: Johannes Larsen


A typo in Database._create_query loses the exclude_tag names during the
string to utf-8 conversion.


The problem is fixed by this patch applied to current master (ced341e8):

diff --git i/bindings/python-cffi/notmuch2/_database.py w/bindings/python-cffi/notmuch2/_database.py
index 5ab0f20a..868f4408 100644
--- i/bindings/python-cffi/notmuch2/_database.py
+++ w/bindings/python-cffi/notmuch2/_database.py
@@ -581 +581 @@ class Database(base.NotmuchObject):
-                    tag = str.encode('utf-8')
+                    tag = tag.encode('utf-8')

-- 
johs (Johannes Larsen), (+47) 41435451
signature.asc (application/pgp-signature)
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: