Skip to content

Conversation

@JonnyJD
Copy link
Owner

@JonnyJD JonnyJD commented Mar 28, 2012

patch from
https://sourceforge.net/support/tracker.php?aid=3309668

Tested on 3.0.1

A relative import like:
from .foo import *

is not parsed correctly.

| Source code parsing failed (but introspection was successful).
| Error: Error during parsing: invalid syntax
| -- Bad dotted name

With the attached patch it does parse correctly.


Note that general support for relative imports was added with
d38a577 in 2007-03-10.
This is just a special case, that was ommited before.

patch from
https://sourceforge.net/support/tracker.php?aid=3309668

Tested on 3.0.1

A relative import like:
from .foo import *

is not parsed correctly.

| Source code parsing failed (but introspection was successful).
| Error: Error during parsing: invalid syntax
| -- Bad dotted name

With the attached patch it does parse correctly.

----

Note that general support for relative imports was added with
d38a577 in 2007-03-10.
This is just a special case, that was ommited before.

Signed-off-by: Johannes Dewender <[email protected]>
@sfinkens
Copy link

The patch works fine, thanks! Could you please merge it into master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants