[pypy-dev] pypy sandbox

Dalius Dobravolskas dalius.dobravolskas at gmail.com
Wed Feb 25 06:43:19 CET 2009


>> +    if esc and sys.platform != "win32" and 'isatty' in dir(file) and
>> file.isatty():
>
> Please use hasattr(log, 'isatty') instead.
Ačiū, Mariau. I felt that there should be more efficient way to do that ;-)

-- 
Dalius
http://blog.sandbox.lt



More information about the Pypy-dev mailing list