Пример #1
0
 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)
Пример #2
0
 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)