logilab-astng #70565 absolute imports treated as relative [validation pending]
Causes the pylint #70495 bug.
A simple patch fixes it:
--- logilab-astng-0.21.1.orig/scoped_nodes.py 2011-01-11 15:47:29.000000000 +0100 | |
priority | normal |
---|---|
type | bug |
done in | 0.22.0 |
load left | 0.000 |
closed by | #c8f6995834aa closes #70565: absolute imports treated as relative (patch by Jacek Konieczny) |
Comments
-
2011/07/08 08:37, written by Jajcus
-
2011/07/08 09:16, written by Jajcus
-
2012/07/07 12:47, written by mostrows
add commentfixed patch formatting:
Ooops… the patch had a bad side effect ('relative_only' stopped working). Here is an updated one:
Please sse bug 99413. This patch is currently broken. This is apparently due to the fact that the default value for level from mixins.py:110 is 0 not None. node_classes.py:595 (the From.__init__ method) defaults "level" to 0.