* [PATCH] Fix two minor flake8 issues
@ 2024-02-23 19:01 Tom Tromey
2024-02-23 19:33 ` Simon Marchi
0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2024-02-23 19:01 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
flake8 pointed out some extra whitespace around ':' in some Python
code.
---
gdb/python/lib/gdb/command/frame_filters.py | 2 +-
gdb/python/lib/gdb/prompt.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/python/lib/gdb/command/frame_filters.py b/gdb/python/lib/gdb/command/frame_filters.py
index 47045518e64..41f61ff19bc 100644
--- a/gdb/python/lib/gdb/command/frame_filters.py
+++ b/gdb/python/lib/gdb/command/frame_filters.py
@@ -191,7 +191,7 @@ def _complete_frame_filter_list(text, word, all_flag):
# If we only have one completion, complete it and return it.
if len(flist) == 1:
- flist[0] = flist[0][len(text) - len(word) :]
+ flist[0] = flist[0][len(text) - len(word):]
# Otherwise, return an empty list, or a list of frame filter
# dictionaries that the previous filter operation returned.
diff --git a/gdb/python/lib/gdb/prompt.py b/gdb/python/lib/gdb/prompt.py
index 02185b353df..e00e4b0a521 100644
--- a/gdb/python/lib/gdb/prompt.py
+++ b/gdb/python/lib/gdb/prompt.py
@@ -146,7 +146,7 @@ def substitute_prompt(prompt):
if j >= plen or prompt[j] != "}":
arg = None
else:
- arg = prompt[i + 2 : j]
+ arg = prompt[i + 2:j]
i = j
else:
arg = None
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-23 19:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-23 19:01 [PATCH] Fix two minor flake8 issues Tom Tromey
2024-02-23 19:33 ` Simon Marchi
2024-02-23 19:39 ` Tom Tromey
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).