def __init__(self, strategy, source='<string>'):
        self._config = ConfigParser(default_section='strategy', interpolation=None)
        self._config.read_string(strategy, source)

        self._situations = odict()
        for name in self._config.sections():
            # configparser set non-specified values to '', we want default to None
            values = dict.fromkeys(_Situation._fields, None)
            for key, val in self._config[name].items():
                # filter out fields not implemented, otherwise it would
                # cause TypeError for _Situation constructor
                if (not val) or (_Situation._fields not in key):
                    continue
                elif key in _POSITIONS:
                    values[key] = Range(val)
                else:
                    values[key] = val
            self._situations[name] = _Situation(**values)

        self._tuple = tuple(self._situations.values())
dataset/ETHPy150Open pokerregion/poker/poker/strategy.py/Strategy.__init__/swapped operands of `not in`