(self)
Clean up old entries in last_active_term
Clean up old entries in last_active_term
Clean up old entries in last_active_term
def clean_last_active_term(self):
        """Clean up old entries in last_active_term"""
        if self.terminator.doing_layout == True:
            return
        last_active_term = {}
        for tabnum in range(0, self.get_n_pages()):
            nth_page = self.get_nth_page(tabnum)
            if nth_page in self.last_active_term:
                last_active_term[nth_page] = self.last_active_term[nth_page]
        self.last_active_term = last_active_term
def clean_last_active_term ( self ) : if self . terminator . doing_layout == True : return last_active_term = { } for tabnum in range ( 0 , self . get_n_pages ( ) ) : nth_page = self . get_nth_page ( tabnum ) if nth_page in self . last_active_term : last_active_term [ nth_page ] = self . last_active_term [ nth_page ] self . last_active_term = last_active_term