Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/hgweb/server.py Sun Jan 05 22:12:02 2025 -0500 +++ b/mercurial/hgweb/server.py Sun Jan 05 22:23:31 2025 -0500 @@ -386,7 +386,7 @@ def __init__(self, *args, **kwargs): if self.address_family is None: raise error.RepoError(_(b'IPv6 is not available on this system')) - super(IPv6HTTPServer, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) def create_server(ui, app):