diff mercurial/util.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 7292a4618f46
children e406b9656da3
line wrap: on
line diff
--- a/mercurial/util.py	Sun May 13 13:17:50 2012 +0200
+++ b/mercurial/util.py	Sun May 13 13:18:06 2012 +0200
@@ -760,7 +760,7 @@
             ofp.write(chunk)
         ifp.close()
         ofp.close()
-    except:
+    except: # re-raises
         try: os.unlink(temp)
         except OSError: pass
         raise