relative import of * does not work
Brought to you by:
edloper
Tested on 3.0.1
A relative import like:
from .foo import *
is not parsed correctly.
epydoc epydoc_test_relative/a
+-------------------------------------------------------------------------------------------------------
| In /home/alex/tmp/epydoc_test_relative/a/bar.py:
| Source code parsing failed (but introspection was successful).
| Error: Error during parsing: invalid syntax (/home/alex/tmp/epydoc_test_relative/a/bar.py, line 2)
| -- Bad dotted name
With the attached patch it does parse correctly.
Patch to docparser.py
Shell script to demonstrate problem / test patch
I will include your patch in my maintenance fork epydoc-m:
https://github.com/JonnyJD/epydoc-m/pull/6
I still have to test it a bit and I don't have a release yet.