From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Fri, 21 Dec 2012 09:37:54 +0000 (+0100) Subject: python: remove Database.db_p X-Git-Tag: 0.15_rc1~62 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=8728340644da8af1d60af6c9ee329a83549b9ce7 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> --- 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