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
+++ logilab-astng-0.21.1/scoped_nodes.py 2011-07-08 10:19:38.000000000 +0200
@@ -342,6 +342,8 @@
# XXX this returns non sens when called on an absolute import
# like 'pylint.checkers.logilab.astng.utils'
# XXX doesn't return absolute name if self.name isn't absolute name
+ if self.absolute_import_activated() and level is None:
+ return modname
if level:
if self.package:
level = level - 1

prioritynormal
typebug
done in0.22.0
load left0.000
closed by#c8f6995834aa closes #70565: absolute imports treated as relative (patch by Jacek Konieczny)