@flags.setter
    def flags(self, flags):
        """
        It might be nice to make flags not a list of strings. This is
        made harder by the control-spec: `...controllers MUST tolerate
        unrecognized flags and lines...`

        There is some current work in Twisted for open-ended constants
        (enums) support however, it seems.
        """
        if isinstance(flags, basestring):
            flags = flags.split()
        self._flags = [x.lower() for x in flags]
        self.name_is_unique = self._flags in 'named'
dataset/ETHPy150Open meejah/txtorcon/txtorcon/router.py/Router.flags/swapped operands of `in`