* [PATCH] bindings/python-cffi: fix docstring
@ 2022-07-03 20:26 David Bremner
2022-07-05 10:37 ` David Bremner
0 siblings, 1 reply; 2+ messages in thread
From: David Bremner @ 2022-07-03 20:26 UTC (permalink / raw)
To: notmuch
the method Database.get_message does exist any more (if it ever
did). This makes the docstring unhelpful as an example.
---
bindings/python-cffi/notmuch2/_message.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bindings/python-cffi/notmuch2/_message.py b/bindings/python-cffi/notmuch2/_message.py
index aa1cb875..d4b34e91 100644
--- a/bindings/python-cffi/notmuch2/_message.py
+++ b/bindings/python-cffi/notmuch2/_message.py
@@ -26,7 +26,7 @@ class Message(base.NotmuchObject):
package from Python's standard library. You could e.g. create
this as such::
- notmuch_msg = db.get_message(msgid) # or from a query
+ notmuch_msg = db.find(msgid) # or from a query
parser = email.parser.BytesParser(policy=email.policy.default)
with notmuch_msg.path.open('rb) as fp:
email_msg = parser.parse(fp)
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bindings/python-cffi: fix docstring
2022-07-03 20:26 [PATCH] bindings/python-cffi: fix docstring David Bremner
@ 2022-07-05 10:37 ` David Bremner
0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2022-07-05 10:37 UTC (permalink / raw)
To: notmuch
David Bremner <david@tethera.net> writes:
> the method Database.get_message does exist any more (if it ever
> did). This makes the docstring unhelpful as an example.
> ---
applied to master
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-05 10:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-03 20:26 [PATCH] bindings/python-cffi: fix docstring David Bremner
2022-07-05 10:37 ` David Bremner
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).