Mercurial > public > mercurial-scm > hg
comparison mercurial/bundlerepo.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 | ff7134e03629 84680c003d44 |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
268 for chunk in iter(lambda: cgunpacker.deltachunk(None), {}): | 268 for chunk in iter(lambda: cgunpacker.deltachunk(None), {}): |
269 pass | 269 pass |
270 return filespos | 270 return filespos |
271 | 271 |
272 | 272 |
273 class bundlerepository(object): | 273 class bundlerepository: |
274 """A repository instance that is a union of a local repo and a bundle. | 274 """A repository instance that is a union of a local repo and a bundle. |
275 | 275 |
276 Instances represent a read-only repository composed of a local repository | 276 Instances represent a read-only repository composed of a local repository |
277 with the contents of a bundle file applied. The repository instance is | 277 with the contents of a bundle file applied. The repository instance is |
278 conceptually similar to the state of a repository after an | 278 conceptually similar to the state of a repository after an |
548 bundlerepository.__init__(repo, bundlepath, url, tempparent) | 548 bundlerepository.__init__(repo, bundlepath, url, tempparent) |
549 | 549 |
550 return repo | 550 return repo |
551 | 551 |
552 | 552 |
553 class bundletransactionmanager(object): | 553 class bundletransactionmanager: |
554 def transaction(self): | 554 def transaction(self): |
555 return None | 555 return None |
556 | 556 |
557 def close(self): | 557 def close(self): |
558 raise NotImplementedError | 558 raise NotImplementedError |