From nobody Fri May 3 10:11:07 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1669774040372766.0957170877194; Tue, 29 Nov 2022 18:07:20 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0CUy-0002Av-SQ; Tue, 29 Nov 2022 21:06:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0CJB-0003O4-3k for qemu-devel@nongnu.org; Tue, 29 Nov 2022 20:54:45 -0500 Received: from azure-sdnproxy.icoremail.net ([20.232.28.96]) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1p0CJ8-0005Qe-T9 for qemu-devel@nongnu.org; Tue, 29 Nov 2022 20:54:44 -0500 Received: from localhost.localdomain (unknown [10.12.130.38]) by app2 (Coremail) with SMTP id EggMCgCXaC3at4ZjYTEUAA--.25977S5; Wed, 30 Nov 2022 09:54:38 +0800 (CST) From: Dongdong Zhang To: qemu-devel@nongnu.org Cc: jsnow@redhat.com, crosa@redhat.com, bleal@redhat.com, Dongdong Zhang Subject: [PATCH 1/1] Fix some typos Date: Wed, 30 Nov 2022 09:53:58 +0800 Message-Id: <20221130015358.6998-2-zhangdongdong@eswincomputing.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221130015358.6998-1-zhangdongdong@eswincomputing.com> References: <20221130015358.6998-1-zhangdongdong@eswincomputing.com> X-CM-TRANSID: EggMCgCXaC3at4ZjYTEUAA--.25977S5 X-Coremail-Antispam: 1UD129KBjvJXoWxGw1kuFWDtFWrGFWDZw4UCFg_yo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jqvxvzl0uprps33xlqjhudrp/1tbiAQEGCmOGTnAIkgAAsN Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=20.232.28.96; envelope-from=zhangdongdong@eswincomputing.com; helo=azure-sdnproxy.icoremail.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 29 Nov 2022 21:06:53 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1669774044706100001 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fix some typos in 'python' directory. Signed-off-by: Dongdong Zhang Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- python/qemu/machine/console_socket.py | 2 +- python/qemu/machine/qtest.py | 2 +- python/qemu/qmp/protocol.py | 2 +- python/qemu/qmp/qmp_tui.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/qemu/machine/console_socket.py b/python/qemu/machine/co= nsole_socket.py index 8c4ff598ad..4e28ba9bb2 100644 --- a/python/qemu/machine/console_socket.py +++ b/python/qemu/machine/console_socket.py @@ -68,7 +68,7 @@ def _thread_start(self) -> threading.Thread: """Kick off a thread to drain the socket.""" # Configure socket to not block and timeout. # This allows our drain thread to not block - # on recieve and exit smoothly. + # on receive and exit smoothly. socket.socket.setblocking(self, False) socket.socket.settimeout(self, 1) drain_thread =3D threading.Thread(target=3Dself._drain_fn) diff --git a/python/qemu/machine/qtest.py b/python/qemu/machine/qtest.py index 1a1fc6c9b0..906bd13298 100644 --- a/python/qemu/machine/qtest.py +++ b/python/qemu/machine/qtest.py @@ -42,7 +42,7 @@ class QEMUQtestProtocol: :raise socket.error: on socket connection errors =20 .. note:: - No conection is estabalished by __init__(), this is done + No connection is estabalished by __init__(), this is done by the connect() or accept() methods. """ def __init__(self, address: SocketAddrT, diff --git a/python/qemu/qmp/protocol.py b/python/qemu/qmp/protocol.py index 6ea86650ad..15909b7dba 100644 --- a/python/qemu/qmp/protocol.py +++ b/python/qemu/qmp/protocol.py @@ -812,7 +812,7 @@ def _done(task: Optional['asyncio.Future[Any]']) -> boo= l: =20 @bottom_half async def _bh_close_stream(self, error_pathway: bool =3D False) -> Non= e: - # NB: Closing the writer also implcitly closes the reader. + # NB: Closing the writer also implicitly closes the reader. if not self._writer: return =20 diff --git a/python/qemu/qmp/qmp_tui.py b/python/qemu/qmp/qmp_tui.py index ce239d8979..8369144723 100644 --- a/python/qemu/qmp/qmp_tui.py +++ b/python/qemu/qmp/qmp_tui.py @@ -71,7 +71,7 @@ def format_json(msg: str) -> str: due to an decoding error then a simple string manipulation is done to achieve a single line JSON string. =20 - Converting into single line is more asthetically pleasing when looking + Converting into single line is more aesthetically pleasing when looking along with error messages. =20 Eg: @@ -91,7 +91,7 @@ def format_json(msg: str) -> str: =20 [1, true, 3]: QMP message is not a JSON object. =20 - The single line mode is more asthetically pleasing. + The single line mode is more aesthetically pleasing. =20 :param msg: The message to formatted into single line. @@ -498,7 +498,7 @@ def __init__(self, parent: App) -> None: class HistoryBox(urwid.ListBox): """ This widget is modelled using the ListBox widget, contains the list of - all messages both QMP messages and log messsages to be shown in the TU= I. + all messages both QMP messages and log messages to be shown in the TUI. =20 The messages are urwid.Text widgets. On every append of a message, the focus is shifted to the last appended message. --=20 2.17.1