def close(self): self._stripping = 0 for tag in self._matchDict.keys(): if self._matchDict[tag] > 0: for x in range(self._matchDict[tag]): self.write_endtag(tag) PassSGMLParser.close(self)
def close (self): self._stripping = 0 for tag in self._matchDict.keys(): if self._matchDict[tag] > 0: for x in range (self._matchDict[tag]): self.write_endtag(tag) PassSGMLParser.close(self)