Skip to content

Conversation

malfet
Copy link
Contributor

@malfet malfet commented Jun 11, 2020

Remove PY3 and PY34 checks from torch/testing/_internal/common_utils.py
Remove PY35 global var from torch.jit.annotations
Always call try_get_real_signature in torch/jit/annotations.py
Use map instead of imap, since Python-2 is no longer support, so map is always lazy.
Remove all pre Python-3.6 checks from torch/_six.py and torch/_appdirs.py

@malfet malfet requested review from ezyang, orionr and seemethere June 11, 2020 21:18
@malfet malfet requested a review from apaszke as a code owner June 11, 2020 21:18
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jun 11, 2020
@malfet
Copy link
Contributor Author

malfet commented Jun 11, 2020

Let me know if it's better to split it into a series of small PRs

@dr-ci
Copy link

dr-ci bot commented Jun 11, 2020

💊 CI failures summary and remediations

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


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

ci.pytorch.org: 1 failed


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 on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 23 times.

@malfet malfet force-pushed the malfet/delete-py2-codepaths branch from 886defe to 2448ed4 Compare June 12, 2020 19:42
@malfet malfet force-pushed the malfet/delete-py2-codepaths branch from 2448ed4 to 20efff6 Compare June 13, 2020 18:47
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@malfet is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@malfet is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@malfet merged this pull request in c6b69a4.

@malfet malfet deleted the malfet/delete-py2-codepaths branch June 15, 2020 18:42
xwang233 pushed a commit to xwang233/pytorch that referenced this pull request Jun 20, 2020
Summary:
Remove PY3 and PY34 checks from `torch/testing/_internal/common_utils.py`
 Remove PY35 global var from `torch.jit.annotations`
Always call `try_get_real_signature` in `torch/jit/annotations.py`
Use `map` instead of `imap`, since Python-2 is no longer support, so map is always lazy.
Remove all pre Python-3.6 checks from `torch/_six.py` and `torch/_appdirs.py`
Pull Request resolved: pytorch#39879

Differential Revision: D22037811

Pulled By: malfet

fbshipit-source-id: af0c79f976569c2059d39ecb49c6b8285161734f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merged oncall: jit Add this issue/PR to JIT oncall triage queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants