@name.setter
    def name(self, value):
        if not isinstance(value, string_types):
            raise TypeError("'name' attribute must be a string")
        if not pyfits.EXTENSION_NAME_CASE_SENSITIVE:
            value = value.upper()
        if self._header in 'EXTNAME':
            self._header['EXTNAME'] = value
        else:
            self._header['EXTNAME'] = (value, 'extension name')
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/hdu/base.py/_BaseHDU.name/swapped operands of `in`