hgext/keyword.py
changeset 36880 67fb0dca29bc
parent 36876 97f44b0720e2
child 36887 4daa22071d5d
--- a/hgext/keyword.py	Sat Mar 10 18:51:32 2018 -0800
+++ b/hgext/keyword.py	Sat Mar 10 20:35:35 2018 -0800
@@ -621,13 +621,7 @@
         origmatch = kwt.match
         kwt.match = util.never
     try:
-        res = orig(web, req, tmpl)
-        if res is web.res:
-            res = res.sendresponse()
-        elif res is True:
-            return
-
-        for chunk in res:
+        for chunk in orig(web, req, tmpl):
             yield chunk
     finally:
         if kwt: