diff --git a/locust/events.py b/locust/events.py index 917f9796d5..5795eef8bc 100644 --- a/locust/events.py +++ b/locust/events.py @@ -18,7 +18,7 @@ def __iadd__(self, handler): self._handlers.append(handler) return self - def __idec__(self, handler): + def __isub__(self, handler): self._handlers.remove(handler) return self