Skip to content

Commit a767f34

Browse files
committed
fix travis
1 parent a541027 commit a767f34

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
sudo: required
2-
dist: xenial
31
language: python
42

53
python:
64
- 3.5
75
- 3.6
86
- 3.7
7+
- 3.8
98

109
env:
1110
- DJANGO_VERSION=2.*
1211
- DJANGO_VERSION=3.*
1312

1413
matrix:
1514
exclude:
16-
- python 3.5
15+
- python: 3.5
1716
env: DJANGO_VERSION=3.*
17+
- python: 3.8
18+
env: DJANGO_VERSION=2.*
1819

1920
install:
2021
- pip install django==$DJANGO_VERSION

django_ajax/decorators.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from functools import wraps, WRAPPER_ASSIGNMENTS
77

88
from django.http import HttpResponseBadRequest
9-
from django.utils.decorators import available_attrs
109

1110
from django_ajax.shortcuts import render_to_json
1211

tests/ajaxdecorator/app/tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import unicode_literals
22
from datetime import datetime
33
from django.test import TestCase
4-
from django.utils import six
54
from django_ajax.encoder import LazyJSONEncoder
65
import json
76

@@ -18,7 +17,7 @@ def post(self, uri, data=None):
1817

1918
self.assertEquals(200, resp.status_code)
2019
self.assertEquals('application/json', response['Content-Type'])
21-
if isinstance(response.content, six.text_type):
20+
if isinstance(response.content, str):
2221
return response, json.loads(response.content)
2322
else:
2423
return response, json.loads(response.content.decode('utf-8'))

tests/ajaxmiddleware/app/tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import unicode_literals
22
from datetime import datetime
33
from django.test import TestCase
4-
from django.utils import six
54
from django_ajax.encoder import LazyJSONEncoder
65
import json
76

@@ -18,7 +17,7 @@ def post(self, uri, data=None):
1817

1918
self.assertEquals(200, resp.status_code)
2019
self.assertEquals('application/json', response['Content-Type'])
21-
if isinstance(response.content, six.text_type):
20+
if isinstance(response.content, str):
2221
return response, json.loads(response.content)
2322
else:
2423
return response, json.loads(response.content.decode('utf-8'))

0 commit comments

Comments
 (0)