Skip to content

Commit

Permalink
Use simplejson only as a fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
mleinart committed May 22, 2012
1 parent c950741 commit 6494bf1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion webapp/graphite/events/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import datetime
import time

import simplejson
try:
import json
except ImportError:
import simplejson as json

from django.http import HttpResponse
from django.shortcuts import render_to_response, get_object_or_404
Expand Down
5 changes: 4 additions & 1 deletion webapp/graphite/graphlot/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
from django.shortcuts import render_to_response
from django.http import HttpResponse, Http404, HttpResponseBadRequest
from django.conf import settings
import simplejson
try:
import json
except ImportError:
import simplejson as json

from graphite.render.views import parseOptions
from graphite.render.evaluator import evaluateTarget
Expand Down

0 comments on commit 6494bf1

Please sign in to comment.