Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/server.py @ 52641:9bd6854aab86
pyupgrade: convert to new style classes
These were likely missed when the bulk of the classes got this change back in
642e31cb55f0. These were rewritten using a hacked version of `pyupgrade` 3.19.1
that enabled only the `new_style_classes` fixer. See 24ee91ba9aa8 for details.
It's probably better to fix the thirdparty and contrib code upstream, but these
are small changes, like those made locally in the past here. I don't feel like
pulling down and testing potentially a lot of changes just to satisfy this
linter.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 05 Jan 2025 22:00:40 -0500 |
parents | 24ee91ba9aa8 |
children | 5cc8deb96b48 |
line wrap: on
line diff
--- a/mercurial/hgweb/server.py Sun Jan 05 21:03:17 2025 -0500 +++ b/mercurial/hgweb/server.py Sun Jan 05 22:00:40 2025 -0500 @@ -352,7 +352,7 @@ return default -class MercurialHTTPServer(_mixin, httpservermod.httpserver, object): +class MercurialHTTPServer(_mixin, httpservermod.httpserver): # SO_REUSEADDR has broken semantics on windows if pycompat.iswindows: allow_reuse_address = 0