Mercurial > hg > config
comparison python/html2flux.py @ 882:c26ec5ea9b9a
minor fixes
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Wed, 05 Aug 2020 09:20:51 -0700 |
| parents | fbfc02ea7d8e |
| children | 3b7f67021877 |
comparison
equal
deleted
inserted
replaced
| 881:4ebb6aff9d67 | 882:c26ec5ea9b9a |
|---|---|
| 48 import os | 48 import os |
| 49 import sys | 49 import sys |
| 50 from lxml import etree | 50 from lxml import etree |
| 51 from lsex import lsex # local import | 51 from lsex import lsex # local import |
| 52 | 52 |
| 53 string = (str, unicode) | 53 try: |
| 54 # python2 | |
| 55 string = (str, unicode) | |
| 56 except NameError: | |
| 57 # python3 | |
| 58 string = (str,) | |
| 54 | 59 |
| 55 # available executables | 60 # available executables |
| 56 executables = set([os.path.basename(i) for i in lsex() ]) | 61 executables = set([os.path.basename(i) for i in lsex() ]) |
| 57 | 62 |
| 58 # TODO: next generation | 63 # TODO: next generation |
