##// END OF EJS Templates
wireprotohelpers: add missing b prefixes...
Augie Fackler -
r39096:b3c6c194 default
parent child Browse files
Show More
@@ -20,19 +20,19 b' from mercurial import ('
20 wireprotov2server,
20 wireprotov2server,
21 )
21 )
22
22
23 @wireprotov1server.wireprotocommand('customreadonly', permission='pull')
23 @wireprotov1server.wireprotocommand(b'customreadonly', permission=b'pull')
24 def customreadonlyv1(repo, proto):
24 def customreadonlyv1(repo, proto):
25 return wireprototypes.bytesresponse(b'customreadonly bytes response')
25 return wireprototypes.bytesresponse(b'customreadonly bytes response')
26
26
27 @wireprotov2server.wireprotocommand('customreadonly', permission='pull')
27 @wireprotov2server.wireprotocommand(b'customreadonly', permission=b'pull')
28 def customreadonlyv2(repo, proto):
28 def customreadonlyv2(repo, proto):
29 return wireprototypes.cborresponse(b'customreadonly bytes response')
29 return wireprototypes.cborresponse(b'customreadonly bytes response')
30
30
31 @wireprotov1server.wireprotocommand('customreadwrite', permission='push')
31 @wireprotov1server.wireprotocommand(b'customreadwrite', permission=b'push')
32 def customreadwrite(repo, proto):
32 def customreadwrite(repo, proto):
33 return wireprototypes.bytesresponse(b'customreadwrite bytes response')
33 return wireprototypes.bytesresponse(b'customreadwrite bytes response')
34
34
35 @wireprotov2server.wireprotocommand('customreadwrite', permission='push')
35 @wireprotov2server.wireprotocommand(b'customreadwrite', permission=b'push')
36 def customreadwritev2(repo, proto):
36 def customreadwritev2(repo, proto):
37 return wireprototypes.cborresponse(b'customreadwrite bytes response')
37 return wireprototypes.cborresponse(b'customreadwrite bytes response')
38 EOF
38 EOF
General Comments 0
You need to be logged in to leave comments. Login now