Skip to content

Commit 559acc5

Browse files
committed
Merge branch 'master' into gha
2 parents 83a0699 + be55e23 commit 559acc5

File tree

6 files changed

+9
-18
lines changed

6 files changed

+9
-18
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

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ PRETTIER_TARGETS = '**/*.(css|js)'
44

55
style: package-lock.json
66
isort .
7-
black --target-version=py35 .
7+
black --target-version=py36 .
88
flake8
99
npx eslint --ignore-path .gitignore --fix .
1010
npx prettier --ignore-path .gitignore --write $(PRETTIER_TARGETS)
1111

1212
style_check: package-lock.json
1313
isort -c .
14-
black --target-version=py35 --check .
14+
black --target-version=py36 --check .
1515
flake8
1616
npx eslint --ignore-path .gitignore .
1717
npx prettier --ignore-path .gitignore --check $(PRETTIER_TARGETS)

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

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
22
envlist =
3-
py38-docs,
4-
py38-style,
5-
py38-readme,
6-
py{35,36,37,38}-dj22-sqlite
3+
py38-docs
4+
py38-style
5+
py38-readme
6+
py{36,37,38}-dj22-sqlite
77
py{36,37,38}-dj{30,31}-sqlite
88
py{36,37,38}-djmaster-sqlite
99
py{37,38}-dj{22,30,31}-{postgresql,mariadb}

0 commit comments

Comments
 (0)