def __getstate__(self):
        state_dict = self.__dict__.copy()
        if isinstance(state_dict['log_config'], cp.RawConfigParser):
            # Config Parsers are not guaranteed to be picklable
            state_dict['log_config'] = True
        return state_dict
The commit_manually function also works with a using argument.
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/pypetlogging.py/LoggingManager.__getstate__--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/modeltests/transactions/tests.py/TransactionTests.test_manually_managed_with_using