Page MenuHomePhabricator

Several threading methods renamed in Python 2.6 and higher and are deprecated since Python 3.10
Closed, ResolvedPublic

Description

The following threading methods are deprecated in python 3.10:

threading.currentThread => threading.current_thread()
threading.activeCount => threading.active_count()
threading.Condition.notifyAll => threading.Condition.notify_all()
threading.Event.isSet => threading.Event.is_set()
threading.Thread.setName => threading.Thread.name
threading.thread.getName => threading.Thread.name
threading.Thread.isDaemon => threading.Thread.daemon
threading.Thread.setDaemon => threading.Thread.daemon

Event Timeline

Xqt triaged this task as Low priority.Jun 27 2021, 11:27 AM

Change 701685 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [fix] Replace deprecated threading functions and methods

https://gerrit.wikimedia.org/r/701685

Change 701685 merged by jenkins-bot:

[pywikibot/core@master] [fix] Replace deprecated threading functions and methods

https://gerrit.wikimedia.org/r/701685

Xqt claimed this task.