##// END OF EJS Templates
py3: more robustly cast UUID to bytes...
Gregory Szorc -
r36060:223ed0b5 default
parent child Browse files
Show More
@@ -220,7 +220,7 b' def _performhandshake(ui, stdin, stdout,'
220
220
221 # Generate a random token to help identify responses to version 2
221 # Generate a random token to help identify responses to version 2
222 # upgrade request.
222 # upgrade request.
223 token = bytes(uuid.uuid4())
223 token = pycompat.sysbytes(str(uuid.uuid4()))
224 upgradecaps = [
224 upgradecaps = [
225 ('proto', wireprotoserver.SSHV2),
225 ('proto', wireprotoserver.SSHV2),
226 ]
226 ]
General Comments 0
You need to be logged in to leave comments. Login now