comparison mercurial/hgweb/server.py @ 52668:5cc8deb96b48

pyupgrade: modernize calls to superclass methods This is the `legacy` fixer in `pyupgrade`, with the loop yielding the offset of `yield` statements commented out.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 05 Jan 2025 22:23:31 -0500
parents 9bd6854aab86
children
comparison
equal deleted inserted replaced
52667:73ab542565e0 52668:5cc8deb96b48
384 address_family = getattr(socket, 'AF_INET6', None) 384 address_family = getattr(socket, 'AF_INET6', None)
385 385
386 def __init__(self, *args, **kwargs): 386 def __init__(self, *args, **kwargs):
387 if self.address_family is None: 387 if self.address_family is None:
388 raise error.RepoError(_(b'IPv6 is not available on this system')) 388 raise error.RepoError(_(b'IPv6 is not available on this system'))
389 super(IPv6HTTPServer, self).__init__(*args, **kwargs) 389 super().__init__(*args, **kwargs)
390 390
391 391
392 def create_server(ui, app): 392 def create_server(ui, app):
393 if ui.config(b'web', b'certificate'): 393 if ui.config(b'web', b'certificate'):
394 handler = _httprequesthandlerssl 394 handler = _httprequesthandlerssl