From 79e92ebb8d83166b50ab3cbec3d07683b536156d Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Sat, 30 Jan 2010 19:45:33 -0600 Subject: [PATCH] Stream.py now imports json library with utility function. --- tweepy/streaming.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index d81ed88..8343f0e 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -13,16 +13,8 @@ from tweepy.models import Status from tweepy.api import API from tweepy.error import TweepError -try: - import simplejson as json -except ImportError: - try: - import 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" +from tweepy.utils import import_simplejson +json = import_simplejson() STREAM_VERSION = 1 -- 2.25.1