aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings
diff options
context:
space:
mode:
authorGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-12-21 10:37:54 +0100
committerGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-12-21 10:56:06 +0100
commit8728340644da8af1d60af6c9ee329a83549b9ce7 (patch)
tree4b6dee23e87b5b9471decb3557420fc5d8d69660 /bindings
parent22ebd9aa24972fc94e62f92a277c4a72f7fdd3c1 (diff)
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>
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/docs/source/database.rst2
-rw-r--r--bindings/python/notmuch/database.py11
-rw-r--r--bindings/python/notmuch/query.py2
3 files changed, 1 insertions, 14 deletions
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