fix compat with python 2.5

This commit is contained in:
markotibold 2011-03-20 10:37:38 +01:00
parent 7f7be826e2
commit d866f2177e

View File

@ -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):