##// END OF EJS Templates
hooks: use python 2.4 compatible exception handling
Lee Cantey -
r14916:58f97dcb stable
parent child Browse files
Show More
@@ -65,9 +65,10 b' def _pythonhook(ui, repo, name, hname, f'
65 65 '("%s" is not callable)') %
66 66 (hname, funcname))
67 67 try:
68 # redirect IO descriptors the the ui descriptors so hooks that write
69 # directly to these don't mess the command protocol when running through
70 # the command server
68 try:
69 # redirect IO descriptors the the ui descriptors so hooks
70 # that write directly to these don't mess up the command
71 # protocol when running through the command server
71 72 old = sys.stdout, sys.stderr, sys.stdin
72 73 sys.stdout, sys.stderr, sys.stdin = ui.fout, ui.ferr, ui.fin
73 74
General Comments 0
You need to be logged in to leave comments. Login now