Skip to content

Commit

Permalink
Remove handling of threading.Event.isSet spelling (#962)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
altendky committed Mar 13, 2023
1 parent 61158c6 commit 0d27bff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/watchdog/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d27bff

Please sign in to comment.