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 <Sebastian@SSpaeth.de>
This commit is contained in:
Cedric Cabessa 2011-08-09 16:31:12 +02:00 committed by Sebastian Spaeth
parent 68e8560b09
commit 805d737029

View file

@ -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