##// END OF EJS Templates
wireproto: turn an 'except' into a 'finally' as suggest by the comment...
Pierre-Yves David -
r25179:6dbbb4fa default
parent child Browse files
Show More
@@ -807,11 +807,8 b' def stream(repo, proto):'
807 else:
807 else:
808 for chunk in util.filechunkiter(sopener(name), limit=size):
808 for chunk in util.filechunkiter(sopener(name), limit=size):
809 yield chunk
809 yield chunk
810 # replace with "finally:" when support for python 2.4 has been dropped
810 finally:
811 except Exception:
812 sopener.mustaudit = oldaudit
811 sopener.mustaudit = oldaudit
813 raise
814 sopener.mustaudit = oldaudit
815
812
816 return streamres(streamer(repo, entries, total_bytes))
813 return streamres(streamer(repo, entries, total_bytes))
817
814
General Comments 0
You need to be logged in to leave comments. Login now