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
There is a fix available at
https://github.com/JonnyJD/epydoc-m/commit/269780a7686aaa8a919aa187a0d38d31125a5a51
_DevNull is substituted by open(os.devnull, "w")