MCPcopy Create free account
hub / github.com/PageBot/PageBot / _popTag

Method _popTag

Lib/pagebot/contexts/htmlcontext/xmlbuilder.py:219–224  ·  view source on GitHub ↗

Pop tag from the tag stack.

(self, tag)

Source from the content-addressed store, hash-verified

217 self._popTag(tag)
218
219 def _popTag(self, tag):
220 """Pop tag from the tag stack."""
221 runningTag = self._tagStack.pop()
222 if runningTag is None or not runningTag == tag:
223 self.write('<div color="#FF0000">Mismatch in closing tag "%s", expected "%s" in tree "%s".</div>' % (tag, runningTag, self._tagStack))
224 self.newLine() # Optional write newline if not self.compat
225
226 def _peekTag(self):
227 """Answers the name of the current tag."""

Callers 2

_closeTagMethod · 0.95

Calls 2

newLineMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected