hanslub42 / rlwrap

A readline wrapper
GNU General Public License v2.0
2.53k stars 149 forks source link

support Python 3.10 #160

Closed hokuda closed 1 year ago

hokuda commented 2 years ago

Please review this PR. The collections.Callable class which is used in rlwrapfilter.py was copied to the collections.abc package and had been marked as deprecated since Python 3.3 through 3.9. In Python 3.10, it was finally removed. This fix is for supporting the latest Python using collections.abc.Callable in rlwrapfilter.py and providing backward compatibility for running on older versions of Python as well.