diff options
author | Dongdong Zhang <zhangdongdong@eswincomputing.com> | 2022-11-30 09:53:58 +0800 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2023-01-24 13:37:12 -0500 |
commit | af76484e54f6c5e20452c2b329378026b8f2c59d (patch) | |
tree | 27e5cae96236b83ccfdc7d7de007d6d004c1668b /python/qemu/qmp | |
parent | 13356edb87506c148b163b8c7eb0695647d00c2a (diff) | |
download | qemu-af76484e54f6c5e20452c2b329378026b8f2c59d.zip qemu-af76484e54f6c5e20452c2b329378026b8f2c59d.tar.gz qemu-af76484e54f6c5e20452c2b329378026b8f2c59d.tar.bz2 |
Fix some typos
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>
Diffstat (limited to 'python/qemu/qmp')
-rw-r--r-- | python/qemu/qmp/protocol.py | 2 | ||||
-rw-r--r-- | python/qemu/qmp/qmp_tui.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/python/qemu/qmp/protocol.py b/python/qemu/qmp/protocol.py index 6ea8665..15909b7 100644 --- a/python/qemu/qmp/protocol.py +++ b/python/qemu/qmp/protocol.py @@ -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 diff --git a/python/qemu/qmp/qmp_tui.py b/python/qemu/qmp/qmp_tui.py index ce239d8..8369144 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. - 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. |