Skip to content

Commit 8a0fb6b

Browse files
committed
Remove support for Python 3.5
1 parent f5159c8 commit 8a0fb6b

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ matrix:
99
- sudo apt-get -y install libenchant1c2a
1010
- env: TOXENV=style
1111
- env: TOXENV=readme
12-
- python: 3.5
13-
env: TOXENV=py35-dj22-sqlite
1412
- python: 3.6
1513
env: TOXENV=py36-dj22-sqlite
1614
- python: 3.7

debug_toolbar/panels/history/panel.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,7 @@ def generate_stats(self, request, response):
5151
and request.body
5252
and request.META.get("CONTENT_TYPE") == "application/json"
5353
):
54-
# Python <= 3.5's json.loads expects a string.
55-
data = json.loads(
56-
request.body
57-
if sys.version_info[:2] > (3, 5)
58-
else request.body.decode(
59-
request.encoding or settings.DEFAULT_CHARSET
60-
)
61-
)
54+
data = json.loads(request.body)
6255
except RawPostDataException:
6356
# It is not guaranteed that we may read the request data (again).
6457
data = None

docs/changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Change log
2929
* Started spellchecking the documentation.
3030
* Removed calls to the deprecated ``request.is_ajax()`` method. These calls
3131
were unnecessary now that most endpoints return JSON anyway.
32+
* Removed support for Python 3.5.
3233

3334

3435
3.1 (2020-09-21)

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ classifiers =
2222
Programming Language :: Python
2323
Programming Language :: Python :: 3
2424
Programming Language :: Python :: 3 :: Only
25-
Programming Language :: Python :: 3.5
2625
Programming Language :: Python :: 3.6
2726
Programming Language :: Python :: 3.7
2827
Programming Language :: Python :: 3.8
2928
Topic :: Software Development :: Libraries :: Python Modules
3029

3130
[options]
32-
python_requires = >=3.5
31+
python_requires = >=3.6
3332
install_requires =
3433
Django >= 2.2
3534
sqlparse >= 0.2.0

0 commit comments

Comments
 (0)