def dump(self, filename):
        """Dump counters to file"""
        try:
            with open(filename, 'wb') as fp:
                cPickle.dump(self.counters, fp)
        except:
            logging.error("can't dump counter to file: %s" % filename)
            return False
        return True
dataset/ETHPy150Open binux/pyspider/pyspider/libs/counter.py/CounterManager.dump/original