Mercurial > hg
comparison mercurial/worker.py @ 48946: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 | a0674e916fb6 |
children | 13dfad0f9f7a |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
66 | 66 |
67 def ismainthread(): | 67 def ismainthread(): |
68 return threading.current_thread() == threading.main_thread() | 68 return threading.current_thread() == threading.main_thread() |
69 | 69 |
70 | 70 |
71 class _blockingreader(object): | 71 class _blockingreader: |
72 def __init__(self, wrapped): | 72 def __init__(self, wrapped): |
73 self._wrapped = wrapped | 73 self._wrapped = wrapped |
74 | 74 |
75 # Do NOT implement readinto() by making it delegate to | 75 # Do NOT implement readinto() by making it delegate to |
76 # _wrapped.readinto(), since that is unbuffered. The unpickler is fine | 76 # _wrapped.readinto(), since that is unbuffered. The unpickler is fine |