def cancelled(self):
        """Return True if the future has cancelled."""
        with self._condition:
            return self._state is not [CANCELLED, CANCELLED_AND_NOTIFIED]
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/concurrent/concurrent/futures/_base.py/Future.cancelled/operator `in` -> `is not`