Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#304 failure when parsing sys.stdin.isatty()

v3.0
open
nobody
5
2009-03-11
2009-03-11
Anonymous
No

Hi.

I'm using the latest version of epydoc and got an error when executing epydoc on the example that i wrote below:

[root@kpc16 python]# epydoc --version
Epydoc, version 3.0.1
[root@kpc16 python]# /usr/bin/epydoc --check mini_check.py
+-------------------------------------------------------------------------------------------------------------------
| In /tmp/dotan.tmp1222234/kaminario/packaging/python/mini_check.py:
| Import failed (but source code parsing was successful).
| Error: AttributeError: _DevNull instance has no attribute 'isatty' (line 7)
|
Warning: Undocumented:
- mini_check

Here is the content of mini_check.py:
import sys
import os

# if the user execute this script from a console, print kmlog comments to
# stdout as well, and not only to the log file.
if sys.stdin.isatty():
os.environ["LOG_STDOUT"] = "1"

Thanks
Dotan Barak

Discussion