From 12e03dc6f498339f7edfb9a2786a4d7b74ff1425 Mon Sep 17 00:00:00 2001 From: "Thomas Bohmbach, Jr" Date: Mon, 14 Sep 2009 14:43:24 -0500 Subject: [PATCH] Modified another json import to work on app engine --- tweepy/streaming.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index fcfc7fc..947d633 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -13,9 +13,15 @@ from . api import API from . error import TweepError try: - import json + import json #Python >= 2.6 except ImportError: - import simplejson as json + try: + import simplejson as json #Python < 2.6 + except ImportError: + try: + from django.utils import simplejson as json #Google App Engine + except ImportError: + raise ImportError, "Can't load a json library" STREAM_VERSION = 1 -- 2.25.1