Python 2 Deprecated
See original GitHub issueThe 0.4.0 release of torchaudio was the last one supporting python 2, and master no longer officially supports python 2. We’re looking to strip the code of python 2 references.
- No longer use package
six
andbackports
for cross-compatibility - Convert to inline type hinting
- No
__future__
import -
Change string formatting style - Remove mention of python 2.7 in
setup.py
- Remove older code path in _check_module_exists and no longer need to check python 3 is not used at the end of the file
- Update
unicode_decoder
to python 3 only, here. - Replace calls to makedir_exist_ok to
os.makedirs(.., exist_ok=True)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Sunsetting Python 2
We are volunteers who make and take care of the Python programming language. We have decided that January 1, 2020, was the day...
Read more >Extended Support Past Python 2 EOL - ActiveState
The Python Software Foundation sunset Python 2 on January 1, 2020. End of Life (EOL) means there are no more official updates or...
Read more >Python 2 Deprecation FAQ - Salt Project Documentation
Python 2.7.18 was the final release of Python2, released in April 2020. At this point, Python 2 will no longer receive any unpaid...
Read more >Python 2.7 Countdown
Python 2.7 will not be maintained past 2020. Originally, there was no official date. Recently, that date has been updated to January 1,...
Read more >Python 2 EOL: How to survive the end of Python 2 - InfoWorld
As of January 1, 2020, the 2.x branch of the Python programming language is no longer supported by its creators, the Python Software ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not this one 😃
I can take care of type hinting tomorrow 😃