python: remove Database.db_p

The function has been marked as deprecated in 0.14 and is now removed.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
This commit is contained in:
Justus Winter 2012-12-21 10:37:54 +01:00
parent 22ebd9aa24
commit 8728340644
3 changed files with 1 additions and 14 deletions

View file

@ -46,5 +46,3 @@
MODE.READ_WRITE
Open the database in read-write mode
.. autoattribute:: db_p

View file

@ -586,14 +586,3 @@ class Database(object):
raise NotmuchError(message="No DB path specified"
" and no user default found")
return config.get('database', 'path')
@property
def db_p(self):
"""Property returning a pointer to `notmuch_database_t` or `None`
.. deprecated:: 0.14
If you really need a pointer to the notmuch
database object use the `_pointer` field. This
alias will be removed in notmuch 0.15.
"""
return self._db

View file

@ -100,7 +100,7 @@ class Query(object):
# create reference to parent db to keep it alive
self._db = db
# create query, return None if too little mem available
query_p = Query._create(db.db_p, _str(querystr))
query_p = Query._create(db._db, _str(querystr))
if not query_p:
raise NullPointerError
self._query = query_p