From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UM9XBpD7wWLMxQAAbAwnHQ (envelope-from ) for ; Sun, 03 Jul 2022 22:26:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sHB/BZD7wWJregEAG6o9tA (envelope-from ) for ; Sun, 03 Jul 2022 22:26:56 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C9066239EA for ; Sun, 3 Jul 2022 22:26:55 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6D3B05E538; Sun, 3 Jul 2022 20:26:53 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id C35F95E01E for ; Sun, 3 Jul 2022 20:26:50 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 0F0E85FBD0; Sun, 3 Jul 2022 16:26:50 -0400 (EDT) Received: (nullmailer pid 855126 invoked by uid 1000); Sun, 03 Jul 2022 20:26:49 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH] bindings/python-cffi: fix docstring Date: Sun, 3 Jul 2022 17:26:46 -0300 Message-Id: <20220703202646.855114-1-david@tethera.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Message-ID-Hash: DG6QFPEUZ6JAKHGMYQY2PVTKPA7ZHBKK X-Message-ID-Hash: DG6QFPEUZ6JAKHGMYQY2PVTKPA7ZHBKK X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656880015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=gzZVcd/SrJyeNJrLXdGTu6JdrOLcMkSGTqJ5ol6xXjE=; b=Mya+CTs6Tmnp0HYceOD72TibvOhJj3Y/NvIRlY0+xZ2JCmJjYu9/Q4j8Q8k3v3h51KSkMJ 0DcrQAj2fzl3q5dNddqbv6wGIYo++FlwMn4+1snpG0gKC43whAJDNj0XvH69vuXLrqPOiH Jo6l/WbWodmPltwdZGk0GPhwtmBvV9kCKzq8OuiiNsLLaw3De8XRNugJVgOUsA/zFIdYvE ZX0BHXq0yt5wCbdbSC7EMYWOT9P46Bq4byn34/Oag0wi28K2y3ovuhecStES6vatuxJo86 ZLX0NRVY/gc21xVSXvt6IxvdINLs3gglYBs4yRC/d6EjwE9pjMuCYI4AuXdxnA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656880015; a=rsa-sha256; cv=none; b=piikYjyr0E2KE6A+ieTdKtIchzOk77DP9sAEKoa/8sRaYpfO01QNSpc1hrBUB7ABbz1ila UeWXiquTDvBjfXpLk4jcFludZw8TNMh0NEVoL/TbElxxNbk3m3lrQXrVYSvJCU3UYCcpQu EUtxZ8l4G/fAkfvyldsNQmWM1qOCARoLoJjCwt818wKEqtEr5BC/v9oCrCio78d2WjXA+f EvLL6juTLzCMGt8Nl63XcdlYUnpVj0DPd98UmAy72Hf8EOtyDUVJXF4/qz2/blTnvqh/I/ EA+rB1zf9BhtdsWseTSV/EJiJznX9F0QGRcTjusTnOGxXxVM+Vrn2V9MxM6b2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.21 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: C9066239EA X-Spam-Score: -2.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: BgFnKjWQTlny 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