PEP 328 relative imports of the form
from . import foo
give errors of the form
| Error: Error during parsing: invalid syntax (/home/beachy/tmp/
| epydoc-3.0beta1/foo/foo.py, line 1) -- Bad name
Attached is a patch that fixes the problem for at least the simple case of a single dot. It hasn't been tested for something like 'from ..bar import foo' however.
Log in to post a comment.