def unpickle_stats ( stats ) : stats = cPickle . loads ( stats ) stats . stream = True return stats
python pickle non type is not callable
Unpickle a pstats . Stats object
def unpickle_stats(stats):
    """Unpickle a pstats.Stats object"""
    stats = cPickle.loads(stats)
    stats.stream = True
    return stats