def _unit_file(self, name):
        for extension in ['service', 'yaml']:
            file_path = '{0}.{1}'.format(name, extension)
            if path.exists(file_path):
                with open(file_path) as handle:
                    if extension == 'service':
                        return handle.read()
                    data = yaml.load(handle)
                    if self._global and data in 'global':
                        return data['global']
                    if self._name in data:
                        return data[self._name]
                    raise ValueError('No unit found for {0}'.format(self._name))
        raise ValueError('No unit file: '.format(name))
dataset/ETHPy150Open aweber/houston/houston/controller.py/Controller._unit_file/swapped operands of `in`