wireproto: turn an 'except' into a 'finally' as suggest by the comment
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 18 May 2015 13:25:07 -0500
changeset 25179 6dbbb4fa1892
parent 25178 ebc41dae840a
child 25180 3ff2a5dc7c20
wireproto: turn an 'except' into a 'finally' as suggest by the comment Look! More hidden footprints!
mercurial/wireproto.py
--- a/mercurial/wireproto.py	Mon May 18 12:56:59 2015 -0500
+++ b/mercurial/wireproto.py	Mon May 18 13:25:07 2015 -0500
@@ -807,11 +807,8 @@
                 else:
                     for chunk in util.filechunkiter(sopener(name), limit=size):
                         yield chunk
-        # replace with "finally:" when support for python 2.4 has been dropped
-        except Exception:
+        finally:
             sopener.mustaudit = oldaudit
-            raise
-        sopener.mustaudit = oldaudit
 
     return streamres(streamer(repo, entries, total_bytes))