mercurial/hgweb/wsgicgi.py
changeset 14956 1b3f5f603aef
parent 14233 659f34b833b9
child 17424 e7cfe3587ea4
--- a/mercurial/hgweb/wsgicgi.py	Mon Jul 25 15:37:52 2011 -0500
+++ b/mercurial/hgweb/wsgicgi.py	Mon Jul 25 15:38:10 2011 -0500
@@ -78,5 +78,4 @@
         for chunk in content:
             write(chunk)
     finally:
-        if hasattr(content, 'close'):
-            content.close()
+        getattr(content, 'close', lambda : None)()