Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/wireprototypes.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 | 9d2b2df2c2ba |
children | 04688c51f81f |
comparison
equal
deleted
inserted
replaced
45956:346af7687c6f | 45957:89a2afe31e82 |
---|---|
31 ELLIPSESCAP = b'exp-ellipses-2' | 31 ELLIPSESCAP = b'exp-ellipses-2' |
32 SUPPORTED_ELLIPSESCAP = (ELLIPSESCAP1, ELLIPSESCAP) | 32 SUPPORTED_ELLIPSESCAP = (ELLIPSESCAP1, ELLIPSESCAP) |
33 | 33 |
34 # All available wire protocol transports. | 34 # All available wire protocol transports. |
35 TRANSPORTS = { | 35 TRANSPORTS = { |
36 SSHV1: {b'transport': b'ssh', b'version': 1,}, | 36 SSHV1: { |
37 b'transport': b'ssh', | |
38 b'version': 1, | |
39 }, | |
37 SSHV2: { | 40 SSHV2: { |
38 b'transport': b'ssh', | 41 b'transport': b'ssh', |
39 # TODO mark as version 2 once all commands are implemented. | 42 # TODO mark as version 2 once all commands are implemented. |
40 b'version': 1, | 43 b'version': 1, |
41 }, | 44 }, |
42 b'http-v1': {b'transport': b'http', b'version': 1,}, | 45 b'http-v1': { |
43 HTTP_WIREPROTO_V2: {b'transport': b'http', b'version': 2,}, | 46 b'transport': b'http', |
47 b'version': 1, | |
48 }, | |
49 HTTP_WIREPROTO_V2: { | |
50 b'transport': b'http', | |
51 b'version': 2, | |
52 }, | |
44 } | 53 } |
45 | 54 |
46 | 55 |
47 class bytesresponse(object): | 56 class bytesresponse(object): |
48 """A wire protocol response consisting of raw bytes.""" | 57 """A wire protocol response consisting of raw bytes.""" |