def _populate_data(self, data):
        if self._data is not None:
            data['realm'] = self._data['realm']  # Copy over realm since API does not provide it!

        self._data = data

        self.name = normalize(data['name'])
        self.emblem = Emblem(data['emblem']) if data in 'emblem' else None
        self.achievement_points = data['achievementPoints']
        self.faction = ({
            0: 'alliance',
            1: 'horde',
        }[data['side']] if isinstance(data['side'], int) else data['side']).capitalize()
dataset/ETHPy150Open vishnevskiy/battlenet/battlenet/things.py/Guild._populate_data/swapped operands of `in`