def EndElementHandler(self, name):
        state, attrs = self.state.pop()
        if state == 'timeout':
            self['retry'] = (str(attrs['retry']) == 'True')
            if 'val' in attrs:
                self['timeout'] = int(attrs['val'])
        else:
            # str() converts from unicode
            self[state] = str(self.data)
dataset/ETHPy150Open sassoftware/conary/conary/conarycfg.py/EntitlementParser.EndElementHandler/original