snowblink14 / smatch

Smatch tool: evaluation of AMR semantic structures
MIT License
63 stars 25 forks source link

Remove explicit Python 2 support #32

Closed goodmami closed 4 years ago

goodmami commented 4 years ago

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.

Resolves #31