comparison mercurial/wireprototypes.py @ 36536:3cd245945ef3

wireprotoserver: move SSHV1 and SSHV2 constants to wireprototypes To avoid a cycle between modules in an upcoming commit. Differential Revision: https://phab.mercurial-scm.org/D2482
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 27 Feb 2018 14:26:00 -0800
parents 0c231df1ffdc
children abc3b9801563
comparison
equal deleted inserted replaced
36535:1c16324fdf05 36536:3cd245945ef3
4 # GNU General Public License version 2 or any later version. 4 # GNU General Public License version 2 or any later version.
5 5
6 from __future__ import absolute_import 6 from __future__ import absolute_import
7 7
8 import abc 8 import abc
9
10 # Names of the SSH protocol implementations.
11 SSHV1 = 'ssh-v1'
12 # This is advertised over the wire. Incremental the counter at the end
13 # to reflect BC breakages.
14 SSHV2 = 'exp-ssh-v2-0001'
9 15
10 class bytesresponse(object): 16 class bytesresponse(object):
11 """A wire protocol response consisting of raw bytes.""" 17 """A wire protocol response consisting of raw bytes."""
12 def __init__(self, data): 18 def __init__(self, data):
13 self.data = data 19 self.data = data