Fallback to pickle module if CPickle not found.
authorrogelio <rogelio@rsrv.(none)>
Sat, 1 Oct 2011 05:36:55 +0000 (00:36 -0500)
committerJoshua Roesslein <jroesslein@gmail.com>
Sat, 1 Oct 2011 05:59:34 +0000 (00:59 -0500)
tweepy/cache.py

index 8d9cab8eb4e9e5ecf3673c01bedbd19faf9a010f..ff2aada2829de8e23944ac5b82b6d90a976c7bb7 100644 (file)
@@ -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