Mercurial > public > mercurial-scm > hg-stable
diff tests/test-pathencode.py @ 45957:89a2afe31e82
formating: upgrade to black 20.8b1
This required a couple of small tweaks to un-confuse black, but now it
works. Big formatting changes come from:
* Dramatically improved collection-splitting logic upstream
* Black having a strong (correct IMO) opinion that """ is better than '''
Differential Revision: https://phab.mercurial-scm.org/D9430
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 27 Nov 2020 17:03:29 -0500 |
parents | 74802979dd9d |
children | 6000f5b25c9b |
line wrap: on
line diff
--- a/tests/test-pathencode.py Fri Nov 27 17:00:00 2020 -0500 +++ b/tests/test-pathencode.py Fri Nov 27 17:03:29 2020 -0500 @@ -54,8 +54,8 @@ def buildprobtable(fp, cmd='hg manifest tip'): - '''Construct and print a table of probabilities for path name - components. The numbers are percentages.''' + """Construct and print a table of probabilities for path name + components. The numbers are percentages.""" counts = collections.defaultdict(lambda: 0) for line in os.popen(cmd).read().splitlines():