ネストされた一連の try/except ステートメントではなく、次のコードを整理する方法はありますか?
try:
import simplejson as json
except ImportError:
try:
import json
except ImportError:
try:
from django.utils import simplejson as json
except:
raise "Requires either simplejson, Python 2.6 or django.utils!"