'Return core file behavior to default.'

def __exit__(self, *args):

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