Fix some typos
authorDongdong Zhang <zhangdongdong@eswincomputing.com>
Wed, 30 Nov 2022 01:53:58 +0000 (09:53 +0800)
committerJohn Snow <jsnow@redhat.com>
Tue, 24 Jan 2023 18:37:12 +0000 (13:37 -0500)
Fix some typos in 'python' directory.

Signed-off-by: Dongdong Zhang <zhangdongdong@eswincomputing.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20221130015358.6998-2-zhangdongdong@eswincomputing.com
[Fixed additional typo spotted by Max Filippov. --js]
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/machine/console_socket.py
python/qemu/machine/qtest.py
python/qemu/qmp/protocol.py
python/qemu/qmp/qmp_tui.py

index 8c4ff598ad7a17b4526e84cbe56137ee3643fa40..4e28ba9bb2356333dd3320be9d47ec7659501aae 100644 (file)
@@ -68,7 +68,7 @@ class ConsoleSocket(socket.socket):
         """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 = threading.Thread(target=self._drain_fn)
index 1a1fc6c9b08eeb4ead499d7bf42a0a2c7f806c9e..1c46138bd0c9d8de09e81c817a0c9c999e260ebc 100644 (file)
@@ -42,7 +42,7 @@ class QEMUQtestProtocol:
     :raise socket.error: on socket connection errors
 
     .. note::
-       No conection is estabalished by __init__(), this is done
+       No connection is established by __init__(), this is done
        by the connect() or accept() methods.
     """
     def __init__(self, address: SocketAddrT,
index 6ea86650ad24101a54197e061a18a7b8c4f975f3..15909b7dbad5b2e8a815c5c66143ada74ed7d330 100644 (file)
@@ -812,7 +812,7 @@ class AsyncProtocol(Generic[T]):
 
     @bottom_half
     async def _bh_close_stream(self, error_pathway: bool = False) -> None:
-        # NB: Closing the writer also implcitly closes the reader.
+        # NB: Closing the writer also implicitly closes the reader.
         if not self._writer:
             return
 
index ce239d8979b57b508afc778b36246bc4af277c51..83691447231ae96ea834287e99eb064e6d6f5dc4 100644 (file)
@@ -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.
 
-    Converting into single line is more asthetically pleasing when looking
+    Converting into single line is more aesthetically pleasing when looking
     along with error messages.
 
     Eg:
@@ -91,7 +91,7 @@ def format_json(msg: str) -> str:
 
         [1, true, 3]: QMP message is not a JSON object.
 
-    The single line mode is more asthetically pleasing.
+    The single line mode is more aesthetically pleasing.
 
     :param msg:
         The message to formatted into single line.
@@ -498,7 +498,7 @@ class EditorWidget(urwid.Filler):
 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 TUI.
+    all messages both QMP messages and log messages to be shown in the TUI.
 
     The messages are urwid.Text widgets. On every append of a message, the
     focus is shifted to the last appended message.