diff options
author | toonn <toonn@toonn.io> | 2022-02-05 19:11:47 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2022-02-05 19:30:33 +0100 |
commit | bf51686396df97f4ebffae3d252b48569f970230 (patch) | |
tree | 663c890c2a2309b372b99596bdf862fa5276a1ab | |
parent | dc7c3a958f870dc13c9802eccf7878b58c2eda71 (diff) | |
download | ranger-bf51686396df97f4ebffae3d252b48569f970230.tar.gz |
vcs: Switch from deprecated isSet to is_set
-rw-r--r-- | ranger/ext/vcs/vcs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py index 5619ed19..93fb1d0b 100644 --- a/ranger/ext/vcs/vcs.py +++ b/ranger/ext/vcs/vcs.py @@ -463,10 +463,10 @@ class VcsThread(threading.Thread): # pylint: disable=too-many-instance-attribut self.paused.set() self._advance.wait() self._awoken.wait() - if self.__stop.isSet(): + if self.__stop.is_set(): self.stopped.set() return - if not self._advance.isSet(): + if not self._advance.is_set(): continue self._awoken.clear() self.paused.clear() @@ -491,7 +491,7 @@ class VcsThread(threading.Thread): # pylint: disable=too-many-instance-attribut self._advance.set() self._awoken.set() self.stopped.wait(1) - return self.stopped.isSet() + return self.stopped.is_set() def pause(self): """Pause thread""" |