import curses
import os
+
class Status():
index = 0
side = 0
stdscr.addstr("=")
stdscr.addstr("\n" + str(stack[obj.getIdx()][obj.getSide()]))
-
(mlines, mcols) = stdscr.getmaxyx()
mlines -= 1
mcols -= 5
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)
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]))