Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 2.7 #1

Open
jayvdb opened this issue Jul 19, 2020 · 3 comments
Open

Python 2.7 #1

jayvdb opened this issue Jul 19, 2020 · 3 comments

Comments

@jayvdb
Copy link

jayvdb commented Jul 19, 2020

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
Copy link
Owner

rjollos commented Jul 20, 2020

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

@jayvdb
Copy link
Author

jayvdb commented Jul 21, 2020

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

@rjollos
Copy link
Owner

rjollos commented Jul 21, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants