Mercurial > hg-stable
diff tests/test-lfs-pointer.py @ 43076:2372284d9457
formatting: blacken the codebase
This is using my patch to black
(https://github.com/psf/black/pull/826) so we don't un-wrap collection
literals.
Done with:
hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"' | xargs black -S
# skip-blame mass-reformatting only
# no-check-commit reformats foo_bar functions
Differential Revision: https://phab.mercurial-scm.org/D6971
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 09:45:02 -0400 |
parents | 8a08aefa9273 |
children | 6000f5b25c9b |
line wrap: on
line diff
--- a/tests/test-lfs-pointer.py Sat Oct 05 10:29:34 2019 -0400 +++ b/tests/test-lfs-pointer.py Sun Oct 06 09:45:02 2019 -0400 @@ -2,10 +2,12 @@ # Import something from Mercurial, so the module loader gets initialized. from mercurial import pycompat + del pycompat # unused for now from hgext.lfs import pointer + def tryparse(text): r = {} try: @@ -19,11 +21,14 @@ print('reconstructed text differs') return r -t = (b'version https://git-lfs.github.com/spec/v1\n' - b'oid sha256:4d7a214614ab2935c943f9e0ff69d22eadbb8f32b1' - b'258daaa5e2ca24d17e2393\n' - b'size 12345\n' - b'x-foo extra-information\n') + +t = ( + b'version https://git-lfs.github.com/spec/v1\n' + b'oid sha256:4d7a214614ab2935c943f9e0ff69d22eadbb8f32b1' + b'258daaa5e2ca24d17e2393\n' + b'size 12345\n' + b'x-foo extra-information\n' +) tryparse(b'') tryparse(t)