comparison mercurial/dispatch.py @ 32040:0fb78cb90ca7

dispatch: mark callcatch() as a private function
author Yuya Nishihara <yuya@tcha.org>
date Sat, 15 Apr 2017 12:58:06 +0900
parents 71dcd4a4fa2f
children 38963a53ab0d
comparison
equal deleted inserted replaced
32039:2ab7578e685b 32040:0fb78cb90ca7
256 traceback.print_exc() 256 traceback.print_exc()
257 debugmortem[debugger](sys.exc_info()[2]) 257 debugmortem[debugger](sys.exc_info()[2])
258 ui.traceback() 258 ui.traceback()
259 raise 259 raise
260 260
261 return callcatch(ui, _runcatchfunc) 261 return _callcatch(ui, _runcatchfunc)
262 262
263 def callcatch(ui, func): 263 def _callcatch(ui, func):
264 """like scmutil.callcatch but handles more high-level exceptions about 264 """like scmutil.callcatch but handles more high-level exceptions about
265 config parsing and commands. besides, use handlecommandexception to handle 265 config parsing and commands. besides, use handlecommandexception to handle
266 uncaught exceptions. 266 uncaught exceptions.
267 """ 267 """
268 try: 268 try: