diff --git a/bindings/python/docs/source/database.rst b/bindings/python/docs/source/database.rst index 2464bfff..5f1cdc14 100644 --- a/bindings/python/docs/source/database.rst +++ b/bindings/python/docs/source/database.rst @@ -46,5 +46,3 @@ MODE.READ_WRITE Open the database in read-write mode - - .. autoattribute:: db_p diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index 5931f41b..fe692eb7 100644 --- a/bindings/python/notmuch/database.py +++ b/bindings/python/notmuch/database.py @@ -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 diff --git a/bindings/python/notmuch/query.py b/bindings/python/notmuch/query.py index 4abba5bd..b11a399d 100644 --- a/bindings/python/notmuch/query.py +++ b/bindings/python/notmuch/query.py @@ -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