# HG changeset patch # User Jeff Hammel # Date 1368267887 25200 # Node ID 45b970048ae20e250fd8310418319856114a44f5 # Parent fbc033540a34b049b03751b03c9bfc6a4192a9fe resurrect this ole beast diff -r fbc033540a34 -r 45b970048ae2 python/html2flux.py --- a/python/html2flux.py Sat May 11 03:18:55 2013 -0700 +++ b/python/html2flux.py Sat May 11 03:24:47 2013 -0700 @@ -23,7 +23,7 @@ # available executables executables = set([i.rsplit('/', 1)[-1] for i in lsex() ]) -def printmenu(dl, output, top=True): +def readmenu(dl, output, top=True): menu_items = [] name = None # menu name @@ -47,7 +47,14 @@ if not top: print >> output, '[end]' +def printmenu(dl, output): + """ + - output: file-like object for writing + """ + menu = readmenu(dl, output) + def main(args=sys.argv[1:]): + """command line interface""" # parse command line option usage = '%prog [options] [menu.html]'