Mercurial > public > mercurial-scm > hg-stable
diff tests/blackbox-readonly-dispatch.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 | c93d046d4300 |
children | 86e4daa2d54c |
line wrap: on
line diff
--- a/tests/blackbox-readonly-dispatch.py Sat Oct 05 10:29:34 2019 -0400 +++ b/tests/blackbox-readonly-dispatch.py Sun Oct 06 09:45:02 2019 -0400 @@ -6,6 +6,7 @@ ui as uimod, ) + def testdispatch(cmd): """Simple wrapper around dispatch.dispatch() @@ -18,6 +19,7 @@ result = dispatch.dispatch(req) ui.status(b"result: %r\n" % result) + # create file 'foo', add and commit f = open(b'foo', 'wb') f.write(b'foo\n')