import os, os.path, random, sys, time
from optparse import OptionParser
import logging
import os, os.path, random, sys, time
from optparse import OptionParser
import logging
fd = open(filename, 'wb')
pickle.dump(obj = self, file = fd, protocol = 2)
fd = open(filename, 'wb')
pickle.dump(obj = self, file = fd, protocol = 2)
except Exception, e:
warning("Storing cache: %s" % e)
def load_cache(self, filename):
try:
except Exception, e:
warning("Storing cache: %s" % e)
def load_cache(self, filename):
try:
def store_cache(self, filename):
try:
fd = open(filename, 'wb')
def store_cache(self, filename):
try:
fd = open(filename, 'wb')
logging.debug("Cache successfully stored")
except Exception, e:
logging.warning("Storing cache", exc_info=1)
logging.debug("Cache successfully stored")
except Exception, e:
logging.warning("Storing cache", exc_info=1)