Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/chgserver.py @ 36843:5bc7ff103081
py3: use r'' instead of sysstr('') to get around code transformer
Fewer function calls should be better.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 10 Mar 2018 15:57:16 +0900 |
parents | ffa3026d4196 |
children | d4a2e0d5d042 |
comparison
equal
deleted
inserted
replaced
36842:1527f40de3b3 | 36843:5bc7ff103081 |
---|---|
294 else: | 294 else: |
295 raise error.ProgrammingError('invalid S channel type: %s' % type) | 295 raise error.ProgrammingError('invalid S channel type: %s' % type) |
296 | 296 |
297 _iochannels = [ | 297 _iochannels = [ |
298 # server.ch, ui.fp, mode | 298 # server.ch, ui.fp, mode |
299 ('cin', 'fin', pycompat.sysstr('rb')), | 299 ('cin', 'fin', r'rb'), |
300 ('cout', 'fout', pycompat.sysstr('wb')), | 300 ('cout', 'fout', r'wb'), |
301 ('cerr', 'ferr', pycompat.sysstr('wb')), | 301 ('cerr', 'ferr', r'wb'), |
302 ] | 302 ] |
303 | 303 |
304 class chgcmdserver(commandserver.server): | 304 class chgcmdserver(commandserver.server): |
305 def __init__(self, ui, repo, fin, fout, sock, hashstate, baseaddress): | 305 def __init__(self, ui, repo, fin, fout, sock, hashstate, baseaddress): |
306 super(chgcmdserver, self).__init__( | 306 super(chgcmdserver, self).__init__( |