Mercurial > hg
comparison tests/test-bundle.t @ 48876:42d2b31cee0b
tests: remove from __future__ from inline Python in tests
This is no longer required since we require Python 3 and the linter
no longer requires these statements.
Differential Revision: https://phab.mercurial-scm.org/D12255
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Feb 2022 15:28:44 -0700 |
parents | de3ac3d2c60b |
children | 2bcf5e14bb7e |
comparison
equal
deleted
inserted
replaced
48875:6000f5b25c9b | 48876:42d2b31cee0b |
---|---|
464 (this also confirms that streamclone-ed changes are visible via | 464 (this also confirms that streamclone-ed changes are visible via |
465 @filecache properties to in-process procedures before closing | 465 @filecache properties to in-process procedures before closing |
466 transaction) | 466 transaction) |
467 | 467 |
468 $ cat > $TESTTMP/showtip.py <<EOF | 468 $ cat > $TESTTMP/showtip.py <<EOF |
469 > from __future__ import absolute_import | |
470 > | 469 > |
471 > def showtip(ui, repo, hooktype, **kwargs): | 470 > def showtip(ui, repo, hooktype, **kwargs): |
472 > ui.warn(b'%s: %s\n' % (hooktype, repo[b'tip'].hex()[:12])) | 471 > ui.warn(b'%s: %s\n' % (hooktype, repo[b'tip'].hex()[:12])) |
473 > | 472 > |
474 > def reposetup(ui, repo): | 473 > def reposetup(ui, repo): |