Mailinglist Archive: opensuse-buildservice (170 mails)

< Previous Next >
Re: [opensuse-buildservice] [PATCH0/0] raw_input checks if stdin is tty
On Fri, Nov 02, 2012 at 10:10:15AM +0100, Michal Vyskocil wrote:
On Wed, Oct 31, 2012 at 11:21:41AM +0100, Michal Vyskocil wrote:
Hi community,

Hallo,

I has been asked by mvancura to not change the behavior, as they handle
the stdin from their scripts.

This has to be revorked somehow ...

BTW: what is a bit strange to me is the fact, Python's raw_input already
tests it
http://hg.python.org/cpython/file/466cbfb3c0c6/Python/bltinmodule.c#l2039

if (PyFile_AsFile(fin) && PyFile_AsFile(fout)
&& isatty(fileno(PyFile_AsFile(fin)))
&& isatty(fileno(PyFile_AsFile(fout)))) {

Regards
Michal Vyskocil
< Previous Next >
References