Mercurial > hg
diff hgext/infinitepush/common.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 | 090e5f3900b7 |
children | 687b865b95ad |
line wrap: on
line diff
--- a/hgext/infinitepush/common.py Sat Oct 05 10:29:34 2019 -0400 +++ b/hgext/infinitepush/common.py Sun Oct 06 09:45:02 2019 -0400 @@ -15,9 +15,12 @@ pycompat, ) + def isremotebooksenabled(ui): - return ('remotenames' in extensions._extensions and - ui.configbool('remotenames', 'bookmarks')) + return 'remotenames' in extensions._extensions and ui.configbool( + 'remotenames', 'bookmarks' + ) + def downloadbundle(repo, unknownbinhead): index = repo.bundlestore.index @@ -28,6 +31,7 @@ bundleraw = store.read(bundleid) return _makebundlefromraw(bundleraw) + def _makebundlefromraw(data): fp = None fd, bundlefile = pycompat.mkstemp()