changeset 47194:acd84c434896

hgweb: Fix deprecation warning in Python 3.10 (issue6520) Differential Revision: https://phab.mercurial-scm.org/D10711
author Karthikeyan Singaravelan <tir.karthi@gmail.com>
date Sat, 15 May 2021 09:45:10 +0000
parents 47ccab19bf9f
children 546e812a1c2d
files mercurial/hgweb/server.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"):