MCPcopy
hub / github.com/csev/py4e / end

Method end

code3/bs4/builder/_lxml.py:185–199  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

183 return None
184
185 def end(self, name):
186 self.soup.endData()
187 completed_tag = self.soup.tagStack[-1]
188 namespace, name = self._getNsTag(name)
189 nsprefix = None
190 if namespace is not None:
191 for inverted_nsmap in reversed(self.nsmaps):
192 if inverted_nsmap is not None and namespace in inverted_nsmap:
193 nsprefix = inverted_nsmap[namespace]
194 break
195 self.soup.handle_endtag(name, nsprefix)
196 if len(self.nsmaps) > 1:
197 # This tag, or one of its parents, introduced a namespace
198 # mapping, so pop it off the stack.
199 self.nsmaps.pop()
200
201 def pi(self, target, data):
202 self.soup.endData()

Callers 15

foundation.min.jsFile · 0.45
foundation.jsFile · 0.45
foundation.min.jsFile · 0.45
jquery-ui.min.jsFile · 0.45
jquery.min.jsFile · 0.45
foundation.min.jsFile · 0.45
jquery-ui.min.jsFile · 0.45
jquery.min.jsFile · 0.45
foundation.min.jsFile · 0.45
jquery-ui.min.jsFile · 0.45
jquery.min.jsFile · 0.45
d3.v2.jsFile · 0.45

Calls 3

_getNsTagMethod · 0.95
endDataMethod · 0.45
handle_endtagMethod · 0.45

Tested by

no test coverage detected