MCPcopy Create free account
hub / github.com/clips/pattern / unknown_endtag

Method unknown_endtag

pattern/web/soup/BeautifulSoup.py:1360–1371  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

1358 return tag
1359
1360 def unknown_endtag(self, name):
1361 #print "End tag %s" % name
1362 if self.quoteStack and self.quoteStack[-1] != name:
1363 #This is not a real end tag.
1364 #print "</%s> is not real!" % name
1365 self.handle_data('</%s>' % name)
1366 return
1367 self.endData()
1368 self._popToTag(name)
1369 if self.quoteStack and self.quoteStack[-1] == name:
1370 self.quoteStack.pop()
1371 self.literal = (len(self.quoteStack) > 0)
1372
1373 def handle_data(self, data):
1374 self.currentData.append(data)

Callers

nothing calls this directly

Calls 5

handle_dataMethod · 0.95
endDataMethod · 0.95
_popToTagMethod · 0.95
lenFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected