[Bug 6520] New: threading.currentThread has been deprecated in favour of threading.current_thread in Python 3.10
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Fri May 14 09:38:33 UTC 2021
https://bz.mercurial-scm.org/show_bug.cgi?id=6520
Bug ID: 6520
Summary: threading.currentThread has been deprecated in favour
of threading.current_thread in Python 3.10
Product: Mercurial
Version: default branch
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: tir.karthi at gmail.com
CC: mercurial-devel at mercurial-scm.org
Python Version: ---
This is causing issues while running tests since deprecation warnings are also
recorded. I would like to contribute a patch for this.
--- /root/hg-committed/tests/test-shelve3.t
+++ /root/hg-committed/tests/test-shelve3.t.err
@@ -11,10 +11,27 @@
$ hg commit -Aqm b
$ echo test > sample.txt
$ hg shelve -n test
+ /root/hg-committed/mercurial/vfs.py:310: DeprecationWarning: currentThread()
is deprecated, use current_thread() instead
+ threading.currentThread(),
+ /root/hg-committed/mercurial/vfs.py:486: DeprecationWarning: currentThread()
is deprecated, use current_thread() instead
+ threading.currentThread(),
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list