hgweb: Fix deprecation warning in Python 3.10 (
issue6520)
Differential Revision: https://phab.mercurial-scm.org/D10711
--- 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"):