]> git.armaanb.net Git - lightcards.git/commitdiff
Fix style per the suggestions of Flake8
authorArmaan Bhojwani <me@armaanb.net>
Sun, 31 Jan 2021 00:22:32 +0000 (19:22 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 31 Jan 2021 00:22:53 +0000 (19:22 -0500)
lightcards/display.py
lightcards/parse.py

index b276680adc3331689928bf7f32835d981f58e982..f3e8b50b87553c474bb7bdca21bbeabf64288289 100755 (executable)
@@ -4,6 +4,7 @@
 import curses
 import os
 
+
 class Status():
     index = 0
     side = 0
@@ -40,7 +41,6 @@ def disp_card(stdscr, stack, headers, obj):
         stdscr.addstr("=")
     stdscr.addstr("\n" + str(stack[obj.getIdx()][obj.getSide()]))
 
-
     (mlines, mcols) = stdscr.getmaxyx()
     mlines -= 1
     mcols -= 5
@@ -54,9 +54,10 @@ def disp_card(stdscr, stack, headers, obj):
             stdscr.insch(mlines, mcols+2, '2')
         stdscr.insch(mlines, mcols+3, '/')
         stdscr.insch(mlines, mcols+4, str(len(stack)))
-    except:
+    except Exception:
         pass
 
+
 def get_key(stdscr, stack, headers):
     idx = Status()
     curses.curs_set(0)
index 12c1073552082f147ef17539f23bba3d60a1aae7..457da136f4b30b503f3350dfdcf3f9dd7d58150c 100755 (executable)
@@ -31,8 +31,10 @@ def parse_html(html):
     return ([clean_text(x) for x in soup.find_all("th")],
             clean_list(outp))
 
+
 def main(file):
     return parse_html(md2html(file))
 
+
 if __name__ == "__main__":
     print(main(sys.argv[1]))