]> git.notmuchmail.org Git - notmuch/commitdiff
python: remove Database.db_p
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Fri, 21 Dec 2012 09:37:54 +0000 (10:37 +0100)
committerJustus Winter <4winter@informatik.uni-hamburg.de>
Fri, 21 Dec 2012 09:56:06 +0000 (10:56 +0100)
The function has been marked as deprecated in 0.14 and is now removed.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
bindings/python/docs/source/database.rst
bindings/python/notmuch/database.py
bindings/python/notmuch/query.py

index 2464bffff3273c805928555afcf51b3c5203c508..5f1cdc14b3f6dcbf107d4b708bf7a9228fdbdd7c 100644 (file)
@@ -46,5 +46,3 @@
 
      MODE.READ_WRITE
        Open the database in read-write mode
-
-   .. autoattribute:: db_p
index 5931f41bc26c28d17ca1b5b306beb9abef313674..fe692eb7ae4e38dceeb9aae24ca9b6cccb595a09 100644 (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
index 4abba5bdcd165fa277e60c5fc6593c2a2bc84d91..b11a399d2cf7f592922e1c09d06880c5b63d0ea2 100644 (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