From: Patrick Totzke <patricktotzke@gmail.com>
To: notmuch@notmuchmail.org
Subject: [PATCH] use notmuch_database_open_verbose
Date: Sat, 12 Mar 2016 15:17:37 +0000 [thread overview]
Message-ID: <1457795857-12410-1-git-send-email-patricktotzke@gmail.com> (raw)
... instead of the deprecated notmuch_database_open
when opening the database in notmuch.database.Database.open.
This prevents the library to print Xapian exceptions to stderr.
---
bindings/python/notmuch/database.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py
index f304533..5400338 100644
--- a/bindings/python/notmuch/database.py
+++ b/bindings/python/notmuch/database.py
@@ -86,8 +86,8 @@ class Database(object):
_get_version.argtypes = [NotmuchDatabaseP]
_get_version.restype = c_uint
- """notmuch_database_open"""
- _open = nmlib.notmuch_database_open
+ """notmuch_database_open_verbose"""
+ _open = nmlib.notmuch_database_open_verbose
_open.argtypes = [c_char_p, c_uint, POINTER(NotmuchDatabaseP)]
_open.restype = c_uint
@@ -201,7 +201,7 @@ class Database(object):
This function is used by __init__() and usually does not need
to be called directly. It wraps the underlying
- *notmuch_database_open* function.
+ *notmuch_database_open_verbose* function.
:param status: Open the database in read-only or read-write mode
:type status: :attr:`MODE`
--
2.7.0
next reply other threads:[~2016-03-12 15:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-12 15:17 Patrick Totzke [this message]
2016-03-12 16:26 ` [PATCH] use notmuch_database_open_verbose David Bremner
2016-03-12 16:33 ` David Bremner
2016-03-13 12:03 ` Patrick Totzke
[not found] ` <CAM7JpKmVzZYZ8bpjc5qzWvBedKx4GT-y+EKWS1KQgZJ_LamKNw@mail.gmail.com>
2016-03-13 12:37 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1457795857-12410-1-git-send-email-patricktotzke@gmail.com \
--to=patricktotzke@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).