Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgwebdir_mod.py @ 5289:ed6df6b1c29a
Prevent WSGI apps from touching sys.stdin by setting ui.interactive to False.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Fri, 07 Sep 2007 17:38:52 +0200 |
parents | 142a07e758c8 |
children | 05889b6b1468 b0bfe087ad8a |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Fri Aug 31 22:31:43 2007 +0200 +++ b/mercurial/hgweb/hgwebdir_mod.py Fri Sep 07 17:38:52 2007 +0200 @@ -83,7 +83,8 @@ else: yield config('web', 'motd', '') - parentui = self.parentui or ui.ui(report_untrusted=False) + parentui = self.parentui or ui.ui(report_untrusted=False, + interactive=False) def config(section, name, default=None, untrusted=True): return parentui.config(section, name, default, untrusted)