From eab52aa7f3cc154f25e578dc66de522259eacbd2 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 13 Feb 2021 23:47:34 -0500 Subject: [PATCH] Clean up enumerates --- lightcards/display.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lightcards/display.py b/lightcards/display.py index e7ebb1f..2b4a51f 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -108,8 +108,8 @@ class Help(Panel): ) self.win.hline(2, 1, curses.ACS_HLINE, mcols) - for t in enumerate(text): - self.win.addstr(t[0] + 3, 1, t[1]) + for i, content in enumerate(text, 3): + self.win.addstr(i, 1, content) self.win.box() @@ -156,8 +156,8 @@ class Menu(Panel): f"{c('menu_disp')}: close menu", ] - for t in enumerate(text): - self.win.addstr(t[0] + 3, 1, t[1]) + for i, content in enumerate(text, 3): + self.win.addstr(i, 1, content) self.win.box() -- 2.39.2