Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
47193:47ccab19bf9f | 47194:acd84c434896 |
---|---|
342 | 342 |
343 | 343 |
344 try: | 344 try: |
345 import threading | 345 import threading |
346 | 346 |
347 threading.activeCount() # silence pyflakes and bypass demandimport | 347 threading.active_count() # silence pyflakes and bypass demandimport |
348 _mixin = socketserver.ThreadingMixIn | 348 _mixin = socketserver.ThreadingMixIn |
349 except ImportError: | 349 except ImportError: |
350 if util.safehasattr(os, b"fork"): | 350 if util.safehasattr(os, b"fork"): |
351 _mixin = socketserver.ForkingMixIn | 351 _mixin = socketserver.ForkingMixIn |
352 else: | 352 else: |