Skip to content

Commit d35e640

Browse files
ThomasJRyaninducer
authored andcommitted
Fixed flake8 errors
1 parent d8ff838 commit d35e640

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

pudb/debugger.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -947,14 +947,14 @@ def helpside(w, size, key):
947947
self.rhs_col_sigwrap),
948948
],
949949
dividechars=1)
950-
950+
951951
background = urwid.AttrMap(self.columns, "background")
952952

953953
self.caption = urwid.Text("")
954954
self.header = urwid.AttrMap(self.caption, "header")
955-
955+
956956
self.top = SignalWrap(urwid.Frame(background, self.header))
957-
957+
958958
if CONFIG["hide_header"]:
959959
self.top._w.header = None
960960

@@ -2423,7 +2423,7 @@ def __call__(subself, w, size, key): # noqa: N805, E501 # pylint: disable=no-se
24232423
width=("relative", 75),
24242424
height=("relative", 75),
24252425
)
2426-
2426+
24272427
w = Attr(w, "background")
24282428

24292429
return self.event_loop(w)[0]
@@ -2852,7 +2852,6 @@ def interaction(self, exc_tuple, show_exc_dialog=True):
28522852
self.show_header()
28532853
CONFIG["hide_header"] = False
28542854

2855-
28562855
self.caption.set_text(caption)
28572856
self.event_loop()
28582857

@@ -2964,7 +2963,7 @@ def make_frame_ui(i, frame_lineno):
29642963

29652964
def update_cmdline_win(self):
29662965
self.set_cmdline_state(not CONFIG["hide_cmdline_win"])
2967-
2966+
29682967
def update_header(self):
29692968
"""Update the header to reflect the current settings."""
29702969
self.top._w.header = self.header if not CONFIG["hide_header"] else None

pudb/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def _update_prompt_on_quit():
180180

181181
def _update_hide_cmdline_win():
182182
ui.update_cmdline_win()
183-
183+
184184
def _update_hide_header():
185185
ui.update_header()
186186

@@ -226,7 +226,7 @@ def _update_config(check_box, new_state, option_newvalue):
226226
new_conf_dict["hide_cmdline_win"] = not check_box.get_state()
227227
conf_dict.update(new_conf_dict)
228228
_update_hide_cmdline_win()
229-
229+
230230
elif option == "hide_header":
231231
new_conf_dict["hide_header"] = not check_box.get_state()
232232
conf_dict.update(new_conf_dict)
@@ -279,7 +279,7 @@ def _update_config(check_box, new_state, option_newvalue):
279279
"when not in use",
280280
bool(conf_dict["hide_cmdline_win"]), on_state_change=_update_config,
281281
user_data=("hide_cmdline_win", None))
282-
282+
283283
hide_header = urwid.CheckBox("Hide header from top of window",
284284
bool(conf_dict["hide_header"]), on_state_change=_update_config,
285285
user_data=("hide_header", None))

0 commit comments

Comments
 (0)