# HG changeset patch # User Karthikeyan Singaravelan # Date 2021-05-15 09:45:10 # Node ID acd84c434896560912539ff53b137af0351f27d2 # Parent 47ccab19bf9f2315bee7890cf15b0b857318ad77 hgweb: Fix deprecation warning in Python 3.10 (issue6520) Differential Revision: https://phab.mercurial-scm.org/D10711 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 @@ class _httprequesthandlerssl(_httpreques 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"):