Skip to content

Commit

Permalink
Apply lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lebr0nli committed Apr 14, 2024
1 parent ab2764d commit 01329eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gdbinit-gep.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,12 @@ def get_set_string(self):
# TODO: Support other type when needed
if isinstance(svalue, bool):
svalue = "on" if svalue else "off"
return "Set %s to %r." % (self.set_show_doc, svalue)
return f"Set {self.set_show_doc} to {svalue!r}."

def get_show_string(self, svalue):
if not self.gep_loaded:
return ""
return "%s is %r." % (self.set_show_doc.capitalize(), svalue)
return f"{self.set_show_doc.capitalize()} is {svalue!r}."


single_column_tab_complete = UserParamater(
Expand All @@ -371,7 +371,7 @@ def get_show_string(self, svalue):
BINDINGS.add("c-r")(fzf_reverse_search)
# key binding for fzf tab completion
FIFO_INPUT_PATH, FIFO_OUTPUT_PATH = create_preview_fifos()
FZF_PRVIEW_CMD = "echo {n} > %s\ncat %s" % (FIFO_INPUT_PATH, FIFO_OUTPUT_PATH)
FZF_PRVIEW_CMD = f"echo {{n}} > {FIFO_INPUT_PATH}\ncat {FIFO_OUTPUT_PATH}"
BINDINGS.add("c-i")(fzf_tab_autocomplete)
else:
print_warning("Install fzf for better experience with GEP")
Expand Down

0 comments on commit 01329eb

Please sign in to comment.