'Return core file behavior to default.'

def __exit__(self, *args):

    if (self.old_limit is None):
        return
    try:
        import resource
        resource.setrlimit(resource.RLIMIT_CORE, self.old_limit)
    except (ImportError, ValueError, resource.error):
        pass
