changeset 44877:86a7b7abf28e

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.
author Manuel Jacob <me@manueljacob.de>
date Sat, 30 May 2020 04:59:13 +0200
parents dca2629f6d2e
children 035199ba04ee
files mercurial/hgweb/server.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"))