question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python 2 Deprecated

See original GitHub issue

The 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 and backports 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vincentqbcommented, Jun 4, 2020

#625 addressed setup.py.

Not this one 😃

1reaction
tomassosoriocommented, Mar 30, 2020

I can take care of type hinting tomorrow 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found