diff options
Diffstat (limited to 'mercurial/hgweb/wsgicgi.py')
-rw-r--r-- | mercurial/hgweb/wsgicgi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mercurial/hgweb/wsgicgi.py b/mercurial/hgweb/wsgicgi.py index 5d18d8e..6de394c 100644 --- a/mercurial/hgweb/wsgicgi.py +++ b/mercurial/hgweb/wsgicgi.py @@ -78,4 +78,5 @@ def launch(application): for chunk in content: write(chunk) finally: - getattr(content, 'close', lambda : None)() + if hasattr(content, 'close'): + content.close() |