Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replaced simplejson by system json

  • Loading branch information...
commit 48597765a2117b36cae5e7451df1a4c2f03382a3 1 parent 2e8f12a
@claudep claudep authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/views.py
View
6 docs/views.py
@@ -1,13 +1,13 @@
from __future__ import absolute_import
import datetime
+import json
import django.views.static
from django.core import urlresolvers
from django.http import Http404
from django.shortcuts import render_to_response, redirect
from django.template import RequestContext
-from django.utils import simplejson
import haystack.views
@@ -52,8 +52,8 @@ def document(request, lang, version, url):
'docs/doc.html',
]
return render_to_response(template_names, RequestContext(request, {
- 'doc': simplejson.load(open(doc_path, 'rb')),
- 'env': simplejson.load(open(docroot.child('globalcontext.json'), 'rb')),
+ 'doc': json.load(open(doc_path, 'rb')),
+ 'env': json.load(open(docroot.child('globalcontext.json'), 'rb')),
'lang': lang,
'version': version,
'rtd_version': rtd_version,
Please sign in to comment.
Something went wrong with that request. Please try again.