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.
--- 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"))