Mercurial > public > mercurial-scm > hg
diff mercurial/patch.py @ 16705:c2d9ef43ff6c
check-code: ignore naked excepts with a "re-raise" comment
This also promotes the naked except check from a warning to an error.
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sun, 13 May 2012 13:18:06 +0200 |
parents | e34106fa0dc3 |
children | 107a3270a24a |
line wrap: on
line diff
--- a/mercurial/patch.py Sun May 13 13:17:50 2012 +0200 +++ b/mercurial/patch.py Sun May 13 13:18:06 2012 +0200 @@ -245,7 +245,7 @@ tmpfp.write('\n') elif not diffs_seen and message and content_type == 'text/plain': message += '\n' + payload - except: + except: # re-raises tmpfp.close() os.unlink(tmpname) raise