# HG changeset patch # User Jeff Hammel # Date 1596644451 25200 # Node ID c26ec5ea9b9a9e3fb215cd6d65ffd558ca279c67 # Parent 4ebb6aff9d674ce699b7e75d445ada2912a4809b minor fixes diff -r 4ebb6aff9d67 -r c26ec5ea9b9a .gitignore --- a/.gitignore Tue Aug 06 14:22:00 2019 -0700 +++ b/.gitignore Wed Aug 05 09:20:51 2020 -0700 @@ -3,6 +3,5 @@ *.egg-info *.swp *~ -build dist #* \ No newline at end of file diff -r 4ebb6aff9d67 -r c26ec5ea9b9a python/html2flux.py --- a/python/html2flux.py Tue Aug 06 14:22:00 2019 -0700 +++ b/python/html2flux.py Wed Aug 05 09:20:51 2020 -0700 @@ -50,7 +50,12 @@ from lxml import etree from lsex import lsex # local import -string = (str, unicode) +try: + # python2 + string = (str, unicode) +except NameError: + # python3 + string = (str,) # available executables executables = set([os.path.basename(i) for i in lsex() ])