about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2022-02-05 19:11:47 +0100
committertoonn <toonn@toonn.io>2022-02-05 19:30:33 +0100
commitbf51686396df97f4ebffae3d252b48569f970230 (patch)
tree663c890c2a2309b372b99596bdf862fa5276a1ab
parentdc7c3a958f870dc13c9802eccf7878b58c2eda71 (diff)
downloadranger-bf51686396df97f4ebffae3d252b48569f970230.tar.gz
vcs: Switch from deprecated isSet to is_set
-rw-r--r--ranger/ext/vcs/vcs.py6
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"""