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):