Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/server.py @ 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 | ffd3e823a7e5 |
children | 6000f5b25c9b |
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"):