-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Delete Python <= 3.5 specific checks from the code #39879
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
Conversation
Let me know if it's better to split it into a series of small PRs |
💊 CI failures summary and remediationsAs of commit 4d261a7 (more details on the Dr. CI page):
ci.pytorch.org: 1 failedThis 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. This comment has been revised 23 times. |
Python-2 is no longer supported, so map would always return an iterator
886defe
to
2448ed4
Compare
2448ed4
to
20efff6
Compare
There was a problem hiding this 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.
There was a problem hiding this 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.
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
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
intorch/jit/annotations.py
Use
map
instead ofimap
, since Python-2 is no longer support, so map is always lazy.Remove all pre Python-3.6 checks from
torch/_six.py
andtorch/_appdirs.py