def __get_status(self):
        if None in self.statuses:
            return self.statuses[None]
        elif self.statuses:
            for status in self.status.itervalues():
                return status
        else:
            return None
dataset/ETHPy150Open ralphm/wokkel/wokkel/xmppim.py/AvailabilityPresence.__get_status/original