From 1e30e7c12ee06f6eb79592c374de8133e82ca1f5 Mon Sep 17 00:00:00 2001 From: rogelio Date: Sat, 1 Oct 2011 00:36:55 -0500 Subject: [PATCH] Fallback to pickle module if CPickle not found. --- tweepy/cache.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tweepy/cache.py b/tweepy/cache.py index 8d9cab8..ff2aada 100644 --- 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 -- 2.25.1