Skip to content

Remove unused python2 shebang#58409

Closed
samestep wants to merge 1 commit intopytorch:masterfrom
samestep:remove-unused-python2-shebang
Closed

Remove unused python2 shebang#58409
samestep wants to merge 1 commit intopytorch:masterfrom
samestep:remove-unused-python2-shebang

Conversation

@samestep
Copy link
Contributor

This is the only line (not in third_party) matching the regex ^#!.*python2, and it is not the first line of its file, so it has no effect. As a followup to #58275, this PR removes that shebang to reduce confusion, so now all Python shebangs in this repo are python3.

@samestep samestep requested a review from a team May 17, 2021 17:01
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented May 17, 2021

💊 CI failures summary and remediations

As of commit df36ad1 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@facebook-github-bot
Copy link
Contributor

@samestep has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@samestep merged this pull request in 3507ca3.

krshrimali pushed a commit to krshrimali/pytorch that referenced this pull request May 19, 2021
Summary:
This is the only line (not in `third_party`) matching the regex `^#!.*python2`, and [it is not the first line of its file](https://github.com/koalaman/shellcheck/wiki/SC1128), so it has no effect. As a followup to pytorch#58275, this PR removes that shebang to reduce confusion, so now all Python shebangs in this repo are `python3`.

Pull Request resolved: pytorch#58409

Reviewed By: walterddr

Differential Revision: D28478469

Pulled By: samestep

fbshipit-source-id: c17684c8651e45d3fc383cbbc04a31192d10f52f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants