Patchwork [Bug,6520] New: threading.currentThread has been deprecated in favour of threading.current_thread in Python 3.10

login
register
mail settings
Submitter mercurial-bugs@mercurial-scm.org
Date May 14, 2021, 9:38 a.m.
Message ID <bug-6520-285@https.bz.mercurial-scm.org/>
Download mbox | patch
Permalink /patch/49029/
State Not Applicable
Headers show

Comments

mercurial-bugs@mercurial-scm.org - May 14, 2021, 9:38 a.m.
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@mercurial-scm.org
          Reporter: tir.karthi@gmail.com
                CC: mercurial-devel@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.

Patch

--- /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.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel