Mercurial > hg-stable
comparison mercurial/dispatch.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | d6512b3e9ac0 |
children | de1e7099d100 |
comparison
equal
deleted
inserted
replaced
10281:e7d3b509af8b | 10282:08a0f04b56bd |
---|---|
33 def catchterm(*args): | 33 def catchterm(*args): |
34 raise error.SignalInterrupt | 34 raise error.SignalInterrupt |
35 | 35 |
36 for name in 'SIGBREAK', 'SIGHUP', 'SIGTERM': | 36 for name in 'SIGBREAK', 'SIGHUP', 'SIGTERM': |
37 num = getattr(signal, name, None) | 37 num = getattr(signal, name, None) |
38 if num: signal.signal(num, catchterm) | 38 if num: |
39 signal.signal(num, catchterm) | |
39 | 40 |
40 try: | 41 try: |
41 try: | 42 try: |
42 # enter the debugger before command execution | 43 # enter the debugger before command execution |
43 if '--debugger' in args: | 44 if '--debugger' in args: |