[Request] [+ ] D10711: hgweb: Fix deprecation warning in Python 3.10 (issue6520)

tir.karthi (Karthikeyan Singaravelan) phabricator at mercurial-scm.org
Sat May 15 09:46:24 UTC 2021


tir.karthi created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  fix-threading-active

REVISION DETAIL
  https://phab.mercurial-scm.org/D10711

AFFECTED FILES
  mercurial/hgweb/server.py

CHANGE DETAILS

diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py
+++ b/mercurial/hgweb/server.py
@@ -344,7 +344,7 @@
 try:
     import threading
 
-    threading.activeCount()  # silence pyflakes and bypass demandimport
+    threading.active_count()  # silence pyflakes and bypass demandimport
     _mixin = socketserver.ThreadingMixIn
 except ImportError:
     if util.safehasattr(os, b"fork"):



To: tir.karthi, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210515/3bd01bb9/attachment-0001.html>


More information about the Mercurial-patches mailing list