##// END OF EJS Templates
wireproto: workaround for yield inside try/finally incompatible with python2.4
Thomas Arendsen Hein -
r17603:a7fa5bd1 default
parent child Browse files
Show More
@@ -567,8 +567,11 b' def stream(repo, proto):'
567 else:
567 else:
568 for chunk in util.filechunkiter(sopener(name), limit=size):
568 for chunk in util.filechunkiter(sopener(name), limit=size):
569 yield chunk
569 yield chunk
570 finally:
570 # replace with "finally:" when support for python 2.4 has been dropped
571 except Exception:
571 sopener.mustaudit = oldaudit
572 sopener.mustaudit = oldaudit
573 raise
574 sopener.mustaudit = oldaudit
572
575
573 return streamres(streamer(repo, entries, total_bytes))
576 return streamres(streamer(repo, entries, total_bytes))
574
577
General Comments 0
You need to be logged in to leave comments. Login now