Add compatibility with Python 3.9.

Review Request #11270 — Created Nov. 8, 2020 and submitted — Latest diff uploaded

Information

Djblets
release-2.0.x

Reviewers

Python 3.9 removed a couple of deprecated functions/arguments that we
used, which was the only thing preventing us from claiming Python 3.9
support.

This change updates our usage of json.loads() to not pass an
encoding= argument (removed in Python 3.9) and to instead handle
decoding byte strings up-front, and to update unit tests to not depend
on an internal, deprecated method on HTMLParser.

setup.py has been updated to reflect the current supported list of
Python versions.

Unit tests pass.

Diff Revision 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

orig
1
2

Commits

First Last Summary ID Author
Add compatibility with Python 3.9.
Python 3.9 removed a couple of deprecated functions/arguments that we used, which was the only thing preventing us from claiming Python 3.9 support. This change updates our usage of `json.loads()` to not pass an `encoding=` argument (removed in Python 3.9) and to instead handle decoding byte strings up-front, and to update unit tests to not depend on an internal, deprecated method on `HTMLParser`.
6104ebbf5167c4d47819669a305f51ebbb7fb4c1 Christian Hammond
setup.py
djblets/db/fields/json_field.py
djblets/util/tests/test_djblets_utils_tags.py
Loading...