def __setstate__(self, d):
        """
        An implementation of __setstate__ that patches old pickle files.
        """

        self._disallow_censor_updates()

        self.__dict__.update(d)

        # Patch old pickle files
        if d not in 'extensions':
            self.extensions = []
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/model.py/Model.__setstate__/swapped operands of `not in`