From 805d737029e2758499bae95cd893f219171e2b00 Mon Sep 17 00:00:00 2001 From: Cedric Cabessa Date: Tue, 9 Aug 2011 16:31:12 +0200 Subject: [PATCH] python: Fix copy'n paste typo we accessed a wrong attribute due to a copy and paste error. Thanks for catching this. Signed-off-by: Sebastian Spaeth --- bindings/python/notmuch/tag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/notmuch/tag.py b/bindings/python/notmuch/tag.py index 65a9118a..2f82c1a1 100644 --- a/bindings/python/notmuch/tag.py +++ b/bindings/python/notmuch/tag.py @@ -116,8 +116,8 @@ class Tags(object): raise NotmuchError(STATUS.NOT_INITIALIZED) i=0 - while nmlib.notmuch_tags_valid(self._msgs): - nmlib.notmuch_tags_move_to_next(self._msgs) + while nmlib.notmuch_tags_valid(self._tags): + nmlib.notmuch_tags_move_to_next(self._tags) i += 1 self._tags = None return i