From 451d78f311bc7bb7006658b38274e1899efa96ee Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Sun, 16 May 2021 06:01:49 +0000 Subject: [PATCH] Fix threading related deprecations in Python 3.10. --- twiggy/lib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twiggy/lib/__init__.py b/twiggy/lib/__init__.py index 4799b71..5147140 100644 --- a/twiggy/lib/__init__.py +++ b/twiggy/lib/__init__.py @@ -4,7 +4,7 @@ def thread_name(): """return the name of the current thread""" - return threading.currentThread().getName() + return threading.current_thread().name def iso8601time(gmtime=None):