comparison mercurial/hgweb/server.py @ 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 9f70512ae2cf
children dd3050227a84
comparison
equal deleted inserted replaced
44876:dca2629f6d2e 44877:86a7b7abf28e
311 @staticmethod 311 @staticmethod
312 def preparehttpserver(httpserver, ui): 312 def preparehttpserver(httpserver, ui):
313 try: 313 try:
314 from .. import sslutil 314 from .. import sslutil
315 315
316 sslutil.modernssl 316 sslutil.wrapserversocket
317 except ImportError: 317 except ImportError:
318 raise error.Abort(_(b"SSL support is unavailable")) 318 raise error.Abort(_(b"SSL support is unavailable"))
319 319
320 certfile = ui.config(b'web', b'certificate') 320 certfile = ui.config(b'web', b'certificate')
321 321