aureliojargas / sedsed

Debugger and code formatter for sed scripts
https://aurelio.net/projects/sedsed/
GNU General Public License v3.0
115 stars 10 forks source link

Remove Python 2 support #37

Closed aureliojargas closed 5 years ago

aureliojargas commented 5 years ago

Fact: Besides Python 3, sedsed also currently supports Python versions 2.6 and 2.7.

I want to keep this project alive. It's a spare-time one-man (now a father) effort. I need to cut down on maintenance costs, and supporting old Python versions is one of them.

Currently supporting Python 2 it's not a big deal, since sedsed is an old program that was designed to work in that version. But some refactoring is needed, and having to worry and keep supporting Python 2 in new code is extra work. I also do not work professionally with version 2 anymore, so my memory fails on remembering its quirks.

Also, Python 2 will stop being maintained at January 1, 2020 (https://pythonclock.org). It's 7 months from now.

aureliojargas commented 5 years ago

Support for Python 2.6 was removed, but I have decided to maintain support for Python 2.7 for now.

Now with the new parser (sedparse), which fully supports Python 2.7, most of the hairy code in sedsed was removed. So the maintenance cost here should be lower now.