python: Fix Database().needs_upgrade()

A stupid typo was preventing this from ever working and it was not
detected until now. Patrick noted the typo and proposed the fix in mail
id:"20110704203926.GA20238@brick.lan".

Patch-by: Patrick Totzke <patricktotzke@googlemail.com>
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2011-07-08 22:47:06 +02:00
parent 52e4dedf9a
commit 3545a2960d

View file

@ -195,7 +195,7 @@ class Database(object):
# Raise a NotmuchError if not initialized
self._verify_initialized_db()
return notmuch_database_needs_upgrade(self._db)
return nmlib.notmuch_database_needs_upgrade(self._db)
def upgrade(self):
"""Upgrades the current database