Browse Source

use json if the import of simplejson fails

Natenom/support-murmur-13-1446181288462
Harry Gabriel 14 years ago
parent
commit
545f1a77ad
  1. 3
      pyweb/djextdirect/formprovider.py
  2. 3
      pyweb/djextdirect/provider.py

3
pyweb/djextdirect/formprovider.py

@ -15,7 +15,10 @@
* GNU General Public License for more details. * GNU General Public License for more details.
""" """
try:
import simplejson import simplejson
except ImportError:
import json as simplejson
import functools import functools
from django import forms from django import forms

3
pyweb/djextdirect/provider.py

@ -15,7 +15,10 @@
* GNU General Public License for more details. * GNU General Public License for more details.
""" """
try:
import simplejson import simplejson
except ImportError:
import json as simplejson
import inspect import inspect
import functools import functools
import traceback import traceback

Loading…
Cancel
Save