

def connectionLost(self, reason):
    XMLParser.connectionLost(self, reason)
    if self.elementstack:
        if self.beExtremelyLenient:
            self.documents.append(self.elementstack[0])
        else:
            raise MismatchedTags(*(((self.filename, self.elementstack[(- 1)], 'END_OF_FILE') + self.saveMark()) + self.elementstack[(- 1)]._markpos))

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/microdom.py MicroDOMParser.connectionLost/original