erikrose / parsimonious

The fastest pure-Python PEG parser I can muster
MIT License
1.8k stars 126 forks source link

fix issue #192 - remove six and python 2 compatability code #194

Closed lonnen closed 2 years ago

lonnen commented 2 years ago

parsimonious is all-in on python 3, so six can be removed.

Most of the changes are simple replacements, but there are a few more complicated replacements:

$ tox passes locally for me across all versions. Travis-CI is failing to install or run anything in the python 3.10 environment, though the other environments pass

lonnen commented 2 years ago

I rebased these changes against master now that CI has landed and is working again, which required a force push over the branch. No changes to the patches were made as part of this force push

lonnen commented 2 years ago

one more force push here to catch the update that triggers CI on PRs

lonnen commented 2 years ago

I let this sit for a day, then self-reviewed it line-by-line. I'm satisfied with it