mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
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:
parent
22ebd9aa24
commit
8728340644
3 changed files with 1 additions and 14 deletions
|
@ -46,5 +46,3 @@
|
|||
|
||||
MODE.READ_WRITE
|
||||
Open the database in read-write mode
|
||||
|
||||
.. autoattribute:: db_p
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue