diff mercurial/hgweb/server.py @ 44936: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 9f70512ae2cf
children dd3050227a84
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"))