def _handle_tag_close_close(self):
        """Handle the ending of a closing tag (``</foo>``)."""
        strip = lambda tok: tok.text.rstrip().lower()
        closing = self._pop()
        if len(closing) != 1 or (not isinstance(closing[0], tokens.Text) or
                                 strip(closing[0]) != strip(self._stack[1])):
            self._fail_route()
        self._emit_all(closing)
        self._emit(tokens.TagCloseClose())
        return self._pop()
def _handle_tag_close_close ( self ) : strip = lambda tok : tok . text . rstrip ( ) . lower ( ) closing = self . _pop ( ) if len ( closing ) != 1 or ( not isinstance ( closing [ 0 ] , tokens . Text ) or strip ( closing [ 0 ] ) != strip ( self . _stack [ 1 ] ) ) : self . _fail_route ( ) self . _emit_all ( closing ) self . _emit ( tokens . TagCloseClose ( ) ) return self . _pop ( )
Handle the ending of a closing tag (``</foo>``).