joelspadin / pyvswhere

Python interface to Microsoft's Visual Studio locator tool, vswhere
MIT License
10 stars 2 forks source link

Fix _get_latest_release_url() #4

Closed maksim-petukhov closed 2 years ago

maksim-petukhov commented 2 years ago

_get_latest_release_url() doesn't work in Python 3.9 because json.loads uses removed in Python 3.9 argument encoding.

From Python 3.9 changelog:

The encoding parameter of json.loads() has been removed. As of Python 3.1, it was deprecated and ignored; using it has emitted a DeprecationWarning since Python 3.8.

joelspadin commented 2 years ago

Thanks!

joelspadin commented 2 years ago

I just published version 1.4.0 with this fix. It appears to be working for me on Python 3.10 but let me know if you run into any issues with it.