changeset 293:45b970048ae2

resurrect this ole beast
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 11 May 2013 03:24:47 -0700
parents fbc033540a34
children a0d830fd8a42
files python/html2flux.py
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]'