Mercurial > hg
comparison hgext/convert/transport.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 | 6000f5b25c9b |
children | de9ffb82ef4d |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
68 | 68 |
69 class NotBranchError(SubversionException): | 69 class NotBranchError(SubversionException): |
70 pass | 70 pass |
71 | 71 |
72 | 72 |
73 class SvnRaTransport(object): | 73 class SvnRaTransport: |
74 """ | 74 """ |
75 Open an ra connection to a Subversion repository. | 75 Open an ra connection to a Subversion repository. |
76 """ | 76 """ |
77 | 77 |
78 def __init__(self, url=b"", ra=None): | 78 def __init__(self, url=b"", ra=None): |
105 raise | 105 raise |
106 else: | 106 else: |
107 self.ra = ra | 107 self.ra = ra |
108 svn.ra.reparent(self.ra, self.svn_url.encode('utf8')) | 108 svn.ra.reparent(self.ra, self.svn_url.encode('utf8')) |
109 | 109 |
110 class Reporter(object): | 110 class Reporter: |
111 def __init__(self, reporter_data): | 111 def __init__(self, reporter_data): |
112 self._reporter, self._baton = reporter_data | 112 self._reporter, self._baton = reporter_data |
113 | 113 |
114 def set_path(self, path, revnum, start_empty, lock_token, pool=None): | 114 def set_path(self, path, revnum, start_empty, lock_token, pool=None): |
115 svn.ra.reporter2_invoke_set_path( | 115 svn.ra.reporter2_invoke_set_path( |