Skip to content

Commit 6de8a38

Browse files
committed
fixed DeprecationWarning: currentThread() is deprecated, use current_thread() instead
1 parent 1657d71 commit 6de8a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awake.pyw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def thread_toggle_scrolllock():
1919
"""handles launching of a second thread"""
2020
logging.debug("2nd Thread Start")
2121
pyautogui.FAILSAFE = False # fixes thread dying when cursor corner of screen
22-
while getattr(threading.currentThread(), "do_run", True):
22+
while getattr(threading.current_thread(), "do_run", True):
2323
for _ in range(0, 2): #always do it twice, so scrollock returns to original state
2424
press('scrolllock')
2525
time.sleep(0.4) ##400ms

0 commit comments

Comments
 (0)