summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-07-14 00:13:31 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-07-14 00:13:31 +0300
commit642723c222ae6701d6b8da17039b6e24fd09f235 (patch)
tree1c9dd5351dab91d903d3aebd14ebf1401e244758 /ChangeLog
parentb1824e8f74232fac14e2600c28d53a320a94510e (diff)
downloadastroid-git-642723c222ae6701d6b8da17039b6e24fd09f235.tar.gz
do_import_module passes the proper relative_only flag if the level is higher than 1.
This has the side effect that using `from .something import something` in a non-package will finally result in an import-error on Pylint's side. Until now relative_only was ignored, leading to the import of `something`, if it was globally available.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6b2cbc81..f732985b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -228,6 +228,12 @@ Change log for the astroid package (used to be astng)
an astroid AST from a source code string, similar to how ast.parse can be
used to obtain a Python AST from a source string. This is the test_utils.build_module
promoted to a public API.
+
+ * do_import_module passes the proper relative_only flag if the level is higher
+ than 1. This has the side effect that using `from .something import something`
+ in a non-package will finally result in an import-error on Pylint's side.
+ Until now relative_only was ignored, leading to the import of `something`,
+ if it was globally available.