hgweb: Fix deprecation warning in Python 3.10 (issue6520)
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>
Sat, 15 May 2021 09:45:10 +0000
changeset 47194 acd84c434896
parent 47193 47ccab19bf9f
child 47195 546e812a1c2d
hgweb: Fix deprecation warning in Python 3.10 (issue6520) Differential Revision: https://phab.mercurial-scm.org/D10711
mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py	Mon May 10 21:59:13 2021 +0200
+++ b/mercurial/hgweb/server.py	Sat May 15 09:45:10 2021 +0000
@@ -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"):