From 3d15adaeb11a2f2f2961280026232743afc61398 Mon Sep 17 00:00:00 2001 From: tom christie tom@tomchristie.com Date: Tue, 26 Apr 2011 20:20:31 +0100 Subject: Fixes #35 - Import json from django's built-in package (Does cleverness in determing best lib to use) --- examples/pygments_api/tests.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/pygments_api') diff --git a/examples/pygments_api/tests.py b/examples/pygments_api/tests.py index 017823b9..b4b01e8d 100644 --- a/examples/pygments_api/tests.py +++ b/examples/pygments_api/tests.py @@ -1,12 +1,9 @@ from django.test import TestCase +from django.utils import simplejson as json from djangorestframework.compat import RequestFactory from pygments_api import views import tempfile, shutil -try: - import json -except ImportError: - import simplejson as json class TestPygmentsExample(TestCase): -- cgit v1.2.3