changeset 25179:6dbbb4fa1892

wireproto: turn an 'except' into a 'finally' as suggest by the comment Look! More hidden footprints!
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 18 May 2015 13:25:07 -0500
parents ebc41dae840a
children 3ff2a5dc7c20
files mercurial/wireproto.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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))