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

Add Python 3 compatibility to Android symbol checker #10097

Conversation

aneeshusa
Copy link
Contributor

Make the script that checks for undefined Android symbols compatible
with both Python 2 and Python 3, to allow for future updates to the
default system Python on our build machines.

I'd like to land this before servo/saltfs#249.

We currently use Ubuntu 14.04 (an LTS release); Ubuntu is aiming for Python 3 as the default Python in the next LTS release, 16.04, and I'd like to have any scripts be ready for the transition.

Do we have a Python 2/3 compatibility policy?

cc @cengizio @larsbergstrom


This change is Reviewable

Make the script that checks for undefined Android symbols compatible
with both Python 2 and Python 3, to allow for future updates to the
default system Python on our build machines.

I'd like to land this before servo/saltfs#249.

We currently use Ubuntu 14.04 (an LTS release); Ubuntu is aiming for
Python 3 as the default Python in the next LTS release, 16.04, and
I'd like to have any scripts be ready for the transition.
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 20, 2016
@jdm
Copy link
Member

jdm commented Mar 21, 2016

There is zero python version policy as far as I'm aware.

r? @larsbergstrom

@highfive highfive assigned larsbergstrom and unassigned jdm Mar 21, 2016
@Ms2ger
Copy link
Contributor

Ms2ger commented Mar 21, 2016

We are stuck on python2, but I (personally) believe we should try to make any new code python3-compatible. In any case, this is an improvement.

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit b8eb19e has been approved by Ms2ger

@bors-servo
Copy link
Contributor

⌛ Testing commit b8eb19e with merge 6913677...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Mar 21, 2016
bors-servo pushed a commit that referenced this pull request Mar 21, 2016
…python3-compatible, r=Ms2ger

Add Python 3 compatibility to Android symbol checker

Make the script that checks for undefined Android symbols compatible
with both Python 2 and Python 3, to allow for future updates to the
default system Python on our build machines.

I'd like to land this before servo/saltfs#249.

We currently use Ubuntu 14.04 (an LTS release); Ubuntu is aiming for Python 3 as the default Python in the next LTS release, 16.04, and I'd like to have any scripts be ready for the transition.

Do we have a Python 2/3 compatibility policy?

cc @cengizio @larsbergstrom

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10097)
<!-- Reviewable:end -->
@cengiz-io
Copy link

@aneeshusa Hello! Thanks for noticing this.

As I said, my Python skills are close to novice. Although I tried to use print with mandatory parenthesis, I didn't check the script in Python 3.

@bors-servo
Copy link
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor

@bors-servo bors-servo merged commit b8eb19e into servo:master Mar 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants