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

Run futurize --stage1 to make safe changes for python 3 compatibility. #6063

Merged
merged 1 commit into from
Jul 3, 2018

Conversation

Eric-Arellano
Copy link
Contributor

Problem

First stage of Python 3 port

Solution

Stage 1 of the futurize tool only makes safe changes, and it keeps the code base at Python 2. See http://python-future.org/futurize.html#forwards-conversion-stage1. Stage 2 will later convert this to actual Python 3 code.

This command was ran on

  • src/python
  • test/python
  • contrib
  • examples
  • pants-plugins
  • build-support/bin/check-header-helper.py

(not ran on testprojects)

Stage 1 of the futurize tool only makes safe changes, and it keeps the code base at Python 2. See http://python-future.org/futurize.html#forwards-conversion-stage1. Stage 2 will later convert this to actual Python 3 code.

This command was ran on
- src/python
- test/python
- contrib
- examples
- pants-plugins
- build-support/bin/check-header-helper.py

(not ran on testprojects)
@Eric-Arellano
Copy link
Contributor Author

cc @iantabolt and @mateor

Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -8,6 +8,8 @@
#
# usage: check_header_helper.py dir1 [ dir2 [ ... ] ]

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh the irony of the "header check" script not using its own headers!

@stuhood stuhood merged commit 5a4d7e9 into pantsbuild:master Jul 3, 2018
@Eric-Arellano Eric-Arellano deleted the futurize branch July 3, 2018 21:43
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

Successfully merging this pull request may close these issues.

4 participants