Mercurial > hg
comparison hgext/convert/subversion.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 | f254fc73d956 |
children | 6c4c341d8fa5 |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
178 optrev.kind = svn.core.svn_opt_revision_number | 178 optrev.kind = svn.core.svn_opt_revision_number |
179 optrev.value.number = number | 179 optrev.value.number = number |
180 return optrev | 180 return optrev |
181 | 181 |
182 | 182 |
183 class changedpath(object): | 183 class changedpath: |
184 def __init__(self, p): | 184 def __init__(self, p): |
185 self.copyfrom_path = p.copyfrom_path | 185 self.copyfrom_path = p.copyfrom_path |
186 self.copyfrom_rev = p.copyfrom_rev | 186 self.copyfrom_rev = p.copyfrom_rev |
187 self.action = p.action | 187 self.action = p.action |
188 | 188 |
246 | 246 |
247 args = decodeargs(ui.fin.read()) | 247 args = decodeargs(ui.fin.read()) |
248 get_log_child(ui.fout, *args) | 248 get_log_child(ui.fout, *args) |
249 | 249 |
250 | 250 |
251 class logstream(object): | 251 class logstream: |
252 """Interruptible revision log iterator.""" | 252 """Interruptible revision log iterator.""" |
253 | 253 |
254 def __init__(self, stdout): | 254 def __init__(self, stdout): |
255 self._stdout = stdout | 255 self._stdout = stdout |
256 | 256 |