Hacker News new | ask | show | jobs
by lysium 4761 days ago
Why did you have to switch to python3?

https://github.com/nojhan/colout/commit/37934e9266d05e1519ac...

https://github.com/nojhan/colout/commit/64454e42f1cf5a4f8cd4...

Update: 37934e9 still works with python 2.6

1 comments

There is some incompatibility, like the gettext module in the g++ theme, the way themes are imported, unicode support, the print statement… But maybe it's still possible to write a code that work on both versions?
I see. As a quick fix, I tried to call python 2.6 from the colout script, but that failed because importlib exists only in python3. I don't know how to make it work on both versions, I'm afraid.