hgweb: avoid using `sslutil.modernssl`
authorManuel Jacob <me@manueljacob.de>
Sat, 30 May 2020 04:59:13 +0200
changeset 44877 86a7b7abf28e
parent 44876 dca2629f6d2e
child 44878 035199ba04ee
hgweb: avoid using `sslutil.modernssl` `sslutil.modernssl` is going to be removed. Since the point of using this attribute was to check the importability of the `sslutil`, a different attribute can be used. `sslutil.wrapserversocket` is used because it’s anyway used a few lines below.
mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py	Fri May 29 22:31:26 2020 +0200
+++ b/mercurial/hgweb/server.py	Sat May 30 04:59:13 2020 +0200
@@ -313,7 +313,7 @@
         try:
             from .. import sslutil
 
-            sslutil.modernssl
+            sslutil.wrapserversocket
         except ImportError:
             raise error.Abort(_(b"SSL support is unavailable"))