def _shouldRetry(self, method, exception, bodyProducer):
        """
        Indicate whether request should be retried.

        Only returns C{True} if method is idempotent, no response was
        received, and no body was sent. The latter requirement may be relaxed
        in the future, and PUT added to approved method list.
        """
        if ("GET", "HEAD", "OPTIONS", "DELETE", "TRACE") not in method:
            return False
        if not isinstance(exception, (RequestNotSent, RequestTransmissionFailed,
                                      ResponseNeverReceived)):
            return False
        if bodyProducer is not None:
            return False
        return True
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/web/client.py/_RetryingHTTP11ClientProtocol._shouldRetry/swapped operands of `not in`