Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/server.py @ 49037:642e31cb55f0
py3: use class X: instead of class X(object):
The inheritance from object is implied in Python 3. So this should
be equivalent.
This change was generated via an automated search and replace. So there
may have been some accidental changes.
Differential Revision: https://phab.mercurial-scm.org/D12352
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 13:08:28 -0700 |
parents | e453c69821f8 |
children | 44b26349127b |
comparison
equal
deleted
inserted
replaced
49036:55d132525155 | 49037:642e31cb55f0 |
---|---|
50 else: | 50 else: |
51 path, query = uri, r'' | 51 path, query = uri, r'' |
52 return urlreq.unquote(path), query | 52 return urlreq.unquote(path), query |
53 | 53 |
54 | 54 |
55 class _error_logger(object): | 55 class _error_logger: |
56 def __init__(self, handler): | 56 def __init__(self, handler): |
57 self.handler = handler | 57 self.handler = handler |
58 | 58 |
59 def flush(self): | 59 def flush(self): |
60 pass | 60 pass |
341 except ImportError: | 341 except ImportError: |
342 if util.safehasattr(os, b"fork"): | 342 if util.safehasattr(os, b"fork"): |
343 _mixin = socketserver.ForkingMixIn | 343 _mixin = socketserver.ForkingMixIn |
344 else: | 344 else: |
345 | 345 |
346 class _mixin(object): | 346 class _mixin: |
347 pass | 347 pass |
348 | 348 |
349 | 349 |
350 def openlog(opt, default): | 350 def openlog(opt, default): |
351 if opt and opt != b'-': | 351 if opt and opt != b'-': |