From 0d27bff2d7ad7176c400383ff4b8417400b06a70 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Mon, 13 Mar 2023 15:04:00 -0400 Subject: [PATCH] Remove handling of threading.Event.isSet spelling (#962) Looks like this is a remnant of support for Python versions less than 2.6. https://docs.python.org/2.7/library/threading.html#threading.Event.is_set > Changed in version 2.6: Added `is_set()` spelling. --- src/watchdog/utils/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/watchdog/utils/__init__.py b/src/watchdog/utils/__init__.py index 40b2926cc..21a64ab85 100644 --- a/src/watchdog/utils/__init__.py +++ b/src/watchdog/utils/__init__.py @@ -55,9 +55,6 @@ def __init__(self): self.setDaemon(True) self._stopped_event = threading.Event() - if not hasattr(self._stopped_event, "is_set"): - self._stopped_event.is_set = self._stopped_event.isSet - @property def stopped_event(self): return self._stopped_event