changeset 884:e5861cbbc4bb

python3
author Jeff Hammel <k0scist@gmail.com>
date Wed, 05 Aug 2020 09:45:27 -0700
parents 3b7f67021877
children 6df7507e6338
files python/html2flux.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/python/html2flux.py	Wed Aug 05 09:27:14 2020 -0700
+++ b/python/html2flux.py	Wed Aug 05 09:45:27 2020 -0700
@@ -125,14 +125,15 @@
     for name, item in menu:
         if isinstance(item, string):
             # command
-            print >> output, '[exec] (%s) {%s}' % (name, item)
+            output.write('[exec] (%s) {%s}\n' % (name, item))
         else:
             # submenu
             printflux(name, item, output, top=False)
 
     # print end of this submenu
     if not top:
-        print >> output, '[end]'
+        output.write('[end]\n')
+
 
 def printmenu(dl, output):
     name, menu = readmenu(dl, output)