##// END OF EJS Templates
py3: don't use traceback.print_exc() in commandserver.py...
Yuya Nishihara -
r40397:b7de186e default
parent child Browse files
Show More
@@ -369,7 +369,7 def _serverequest(ui, repo, conn, create
369 369 cerr = sv.cerr
370 370 else:
371 371 cerr = channeledoutput(fout, 'e')
372 traceback.print_exc(file=cerr)
372 cerr.write(encoding.strtolocal(traceback.format_exc()))
373 373 raise
374 374 finally:
375 375 fin.close()
@@ -786,8 +786,9 unix domain socket:
786 786 ... while True:
787 787 ... try:
788 788 ... ch, data = readchannel(conn)
789 ... if not data.startswith(b' '):
790 ... bprint(b'%c, %r' % (ch, data))
789 ... for l in data.splitlines(True):
790 ... if not l.startswith(b' '):
791 ... bprint(b'%c, %r' % (ch, l))
791 792 ... except EOFError:
792 793 ... break
793 794 >>> check(earlycrash, server.connect)
General Comments 0
You need to be logged in to leave comments. Login now