Browse Source

use json if the import of simplejson fails

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

5
pyweb/djextdirect/formprovider.py

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

5
pyweb/djextdirect/provider.py

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

Loading…
Cancel
Save