mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
fix compat with python 2.5
This commit is contained in:
parent
7f7be826e2
commit
d866f2177e
|
@ -1,7 +1,12 @@
|
|||
from django.test import TestCase
|
||||
from djangorestframework.compat import RequestFactory
|
||||
from pygments_api import views
|
||||
import tempfile, shutil, json
|
||||
import tempfile, shutil
|
||||
|
||||
try:
|
||||
import json
|
||||
except ImportError:
|
||||
import simplejson as json
|
||||
|
||||
class TestPygmentsExample(TestCase):
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user