aboutsummaryrefslogtreecommitdiff
path: root/bindings/python-cffi
diff options
context:
space:
mode:
authorJohannes Larsen <mail@johslarsen.net>2020-12-25 11:21:45 -0400
committerDavid Bremner <david@tethera.net>2020-12-25 11:25:25 -0400
commitf01f6405c962e27de52eb777ac3f19ee655b71ba (patch)
treebc5ea8eee122f9c91fe2c713c6474be76998a5bd /bindings/python-cffi
parent27020503402af546d9d3017bb4a6346497c85d09 (diff)
python/notmuch2: fix exclude tag handling
A typo in Database._create_query lost the exclude_tag names during the string to utf-8 conversion. Amended by DB: fixed patch format and updated commit message.
Diffstat (limited to 'bindings/python-cffi')
-rw-r--r--bindings/python-cffi/notmuch2/_database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python-cffi/notmuch2/_database.py b/bindings/python-cffi/notmuch2/_database.py
index 5ab0f20a..868f4408 100644
--- a/bindings/python-cffi/notmuch2/_database.py
+++ b/bindings/python-cffi/notmuch2/_database.py
@@ -578,7 +578,7 @@ class Database(base.NotmuchObject):
if exclude_tags is not None:
for tag in exclude_tags:
if isinstance(tag, str):
- tag = str.encode('utf-8')
+ tag = tag.encode('utf-8')
capi.lib.notmuch_query_add_tag_exclude(query_p, tag)
return querymod.Query(self, query_p)