The code no longer checks the Python version and no longer uses
optparse for older versions. In addition some __future__ imports are
removed. In smatch-table.py, timing uses time.perf_counter().
Otherwise nothing is really done to update to Python 3 code.
Neither smatch.py nor smatch-table.py work with Python2 after this
commit, but smatch.py can run if the print() functions are resolved
somehow (e.g., by using a logger instead of print()). That said, I
deliberately do not put in such accommodations because Python 2 support
is a non-goal.
The code no longer checks the Python version and no longer uses optparse for older versions. In addition some
__future__
imports are removed. Insmatch-table.py
, timing usestime.perf_counter()
. Otherwise nothing is really done to update to Python 3 code.Neither smatch.py nor smatch-table.py work with Python2 after this commit, but smatch.py can run if the print() functions are resolved somehow (e.g., by using a logger instead of print()). That said, I deliberately do not put in such accommodations because Python 2 support is a non-goal.
Resolves #31