rjollos / reindent

Packaged Tools/scripts/reindent from cpython
1 stars 0 forks source link

Python 2.7 #1

Open jayvdb opened 4 years ago

jayvdb commented 4 years ago

Any chance of supporting Python 2.7

https://github.com/python-modernize/python-modernize doesnt provide tab-to-spaces, which is needed to avoid syntax errors on Python 3. It would be nice to be able to use reindent to plug that hole.

rjollos commented 4 years ago

The 0.1.1 version works with Python 2.7: https://pypi.org/project/reindent/0.1.1/

jayvdb commented 4 years ago

I cant see python-modernize wanting to add a very old dependency on Python 2.7, so the question remains.

rjollos commented 4 years ago

You could make a pull request that replaces reindent.py with: https://github.com/python/cpython/blob/2.7/Tools/scripts/reindent.py