Mercurial > public > mercurial-scm > hg
comparison mercurial/utils/compression.py @ 45942: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 | 9f70512ae2cf |
children | 84130fd74a22 |
comparison
equal
deleted
inserted
replaced
45941:346af7687c6f | 45942:89a2afe31e82 |
---|---|
27 | 27 |
28 SERVERROLE = b'server' | 28 SERVERROLE = b'server' |
29 CLIENTROLE = b'client' | 29 CLIENTROLE = b'client' |
30 | 30 |
31 compewireprotosupport = collections.namedtuple( | 31 compewireprotosupport = collections.namedtuple( |
32 'compenginewireprotosupport', ('name', 'serverpriority', 'clientpriority'), | 32 'compenginewireprotosupport', |
33 ('name', 'serverpriority', 'clientpriority'), | |
33 ) | 34 ) |
34 | 35 |
35 | 36 |
36 class propertycache(object): | 37 class propertycache(object): |
37 def __init__(self, func): | 38 def __init__(self, func): |