'Take care of try/finally statements in nogil code sections.'

def visit_TryFinallyStatNode(self, node):

    if ((not self.nogil) or isinstance(node, Nodes.GILStatNode)):
        return self.visit_Node(node)
    node.nogil_check = None
    node.is_try_finally_in_nogil = True
    self.visitchildren(node)
    return node
