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

More Python3 lint fixes #32967

Merged
merged 2 commits into from
Jul 20, 2020
Merged

More Python3 lint fixes #32967

merged 2 commits into from
Jul 20, 2020

Conversation

tbkka
Copy link
Contributor

@tbkka tbkka commented Jul 17, 2020

Some of the issues addressed include:

  • Don't use l as a variable name (confusable with 1 or I)
  • print statement does not exist in Py3, use print function instead
  • Implicit tuple deconstruction in function args is no longer supported,
    use explicit splat * at the call site instead
  • xrange does not exist in Py3, use range instead

Some of the issues addressed include:
* Don't use `l` as a variable name (confusable with `1` or `I`)
* `print` statement does not exist in Py3, use `print` function instead
* Implicit tuple deconstruction in function args is no longer supported,
  use explicit splat `*` at the call site instead
* `xrange` does not exist in Py3, use `range` instead
@tbkka tbkka requested review from compnerd and CodaFi July 17, 2020 23:54
@tbkka
Copy link
Contributor Author

tbkka commented Jul 17, 2020

@swift-ci Python lint

@tbkka
Copy link
Contributor Author

tbkka commented Jul 17, 2020

@swift-ci Please test

@tbkka
Copy link
Contributor Author

tbkka commented Jul 17, 2020

There are only a couple of remaining Python3 lint issues in the tree. I'll work through those after this gets merged.

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 9f66417

@tbkka
Copy link
Contributor Author

tbkka commented Jul 18, 2020

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 9f66417

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 9f66417

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 9f66417

@tbkka
Copy link
Contributor Author

tbkka commented Jul 18, 2020

The linux failure looks to be unrelated. Trying again.

@tbkka
Copy link
Contributor Author

tbkka commented Jul 18, 2020

@swift-ci Please test Linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 469b4e7

@tbkka
Copy link
Contributor Author

tbkka commented Jul 19, 2020

@swift-ci Please test Linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 469b4e7

@tbkka
Copy link
Contributor Author

tbkka commented Jul 19, 2020

@swift-ci Please smoke test

@tbkka
Copy link
Contributor Author

tbkka commented Jul 20, 2020

@swift-ci Please smoke test Linux

@tbkka tbkka merged commit 868425b into swiftlang:master Jul 20, 2020
@tbkka tbkka deleted the tbkka/py3e branch October 16, 2020 00:33
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