Skip to content

Commit c95752c

Browse files
committed
Python 3.x import fix, don't test for 3.4 as django doesn't support
1 parent 54b9670 commit c95752c

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ python:
44
- 2.7
55
- 3.2
66
- 3.3
7-
- 3.4
87

98
env:
109
- DJANGO=Django==1.4.13
@@ -18,8 +17,6 @@ matrix:
1817
env: DJANGO=Django==1.4.13
1918
- python: 3.3
2019
env: DJANGO=Django==1.4.13
21-
- python: 3.4
22-
env: DJANGO=Django==1.4.13
2320
- python: 2.6
2421
env: DJANGO=git+https://github.com/django/django.git@stable/1.7.x#egg=Django
2522

webhook/tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import urlparse
1+
try:
2+
from urllib import parse as urlparse
3+
except ImportError:
4+
import urlparse
25

36
from django.test import TestCase, RequestFactory
47
from django.core.urlresolvers import reverse_lazy

webhook/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import urlparse
1+
try:
2+
from urllib import parse as urlparse
3+
except ImportError:
4+
import urlparse
25

36
from django.views.generic.edit import UpdateView
47
from django.views.decorators.csrf import csrf_exempt

0 commit comments

Comments
 (0)