from tweepy.error import TweepError
try:
- import json #Python >= 2.6
+ import simplejson as json
except ImportError:
try:
- import simplejson as json #Python < 2.6
+ import json # Python 2.6+
except ImportError:
try:
- from django.utils import simplejson as json #Google App Engine
+ from django.utils import simplejson as json # Google App Engine
except ImportError:
raise ImportError, "Can't load a json library"
from tweepy.error import TweepError
try:
- import json #Python >= 2.6
+ import simplejson as json
except ImportError:
try:
- import simplejson as json #Python < 2.6
+ import json # Python 2.6+
except ImportError:
try:
- from django.utils import simplejson as json #Google App Engine
+ from django.utils import simplejson as json # Google App Engine
except ImportError:
raise ImportError, "Can't load a json library"