mercurial/chgserver.py
changeset 30924 48dea083f66d
parent 30750 378686afca52
child 30990 cb899ee133d8
equal deleted inserted replaced
30923:78de43ab585f 30924:48dea083f66d
   285         else:
   285         else:
   286             raise error.ProgrammingError('invalid S channel type: %s' % type)
   286             raise error.ProgrammingError('invalid S channel type: %s' % type)
   287 
   287 
   288 _iochannels = [
   288 _iochannels = [
   289     # server.ch, ui.fp, mode
   289     # server.ch, ui.fp, mode
   290     ('cin', 'fin', 'rb'),
   290     ('cin', 'fin', pycompat.sysstr('rb')),
   291     ('cout', 'fout', 'wb'),
   291     ('cout', 'fout', pycompat.sysstr('wb')),
   292     ('cerr', 'ferr', 'wb'),
   292     ('cerr', 'ferr', pycompat.sysstr('wb')),
   293 ]
   293 ]
   294 
   294 
   295 class chgcmdserver(commandserver.server):
   295 class chgcmdserver(commandserver.server):
   296     def __init__(self, ui, repo, fin, fout, sock, hashstate, baseaddress):
   296     def __init__(self, ui, repo, fin, fout, sock, hashstate, baseaddress):
   297         super(chgcmdserver, self).__init__(
   297         super(chgcmdserver, self).__init__(