Patchwork D10711: hgweb: Fix deprecation warning in Python 3.10 (issue6520)

login
register
mail settings
Submitter phabricator
Date May 15, 2021, 9:46 a.m.
Message ID <differential-rev-PHID-DREV-rg4cy74pwrkldzu42t42-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49031/
State Superseded
Headers show

Comments

phabricator - May 15, 2021, 9:46 a.m.
tir.karthi created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  fix-threading-active

REVISION DETAIL
  https://phab.mercurial-scm.org/D10711

AFFECTED FILES
  mercurial/hgweb/server.py

CHANGE DETAILS




To: tir.karthi, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

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 @@ 
 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"):