projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbdf2c2
)
Fallback to pickle module if CPickle not found.
author
rogelio
<rogelio@rsrv.(none)>
Sat, 1 Oct 2011 05:36:55 +0000
(
00:36
-0500)
committer
Joshua Roesslein
<jroesslein@gmail.com>
Sat, 1 Oct 2011 05:59:34 +0000
(
00:59
-0500)
tweepy/cache.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/cache.py
b/tweepy/cache.py
index 8d9cab8eb4e9e5ecf3673c01bedbd19faf9a010f..ff2aada2829de8e23944ac5b82b6d90a976c7bb7 100644
(file)
--- a/
tweepy/cache.py
+++ b/
tweepy/cache.py
@@
-5,7
+5,11
@@
import time
import threading
import os
-import cPickle as pickle
+
+try:
+ import cPickle as pickle
+except ImportError:
+ import pickle
try:
import hashlib