Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
79e92ebb
Commit
79e92ebb
authored
Jan 30, 2010
by
Joshua Roesslein
Browse files
Stream.py now imports json library with utility function.
parent
680ab394
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
79e92ebb
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment