# HG changeset patch # User Karthikeyan Singaravelan # Date 1621071910 0 # Node ID acd84c434896560912539ff53b137af0351f27d2 # Parent 47ccab19bf9f2315bee7890cf15b0b857318ad77 hgweb: Fix deprecation warning in Python 3.10 (issue6520) Differential Revision: https://phab.mercurial-scm.org/D10711 diff -r 47ccab19bf9f -r acd84c434896 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"):