[issue11709] help-method crashes if sys.stdin is None

Amaury Forgeot d'Arc report at bugs.python.org
Tue Mar 29 14:27:36 CEST 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The code fails precisely when checking that sys.stdin is a valid terminal. See the attached patch for a fix.

Out of curiosity, why did you set sys.stdin to None?

----------
keywords: +patch
nosy: +amaury.forgeotdarc
stage:  -> patch review
Added file: http://bugs.python.org/file21451/no-stdin.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11709>
_______________________________________


More information about the Python-bugs-list mailing list