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
commit3f163ad00a0019e987039ed4894d4df8ad479a1f (patch)
treec432bfddb0c8cdae9615d0a842870fb4130be7e4 /ChangeLog
parent41f07a39030b31eaf7e2a262618bf32014deb7b7 (diff)
downloadastroid-3f163ad00a0019e987039ed4894d4df8ad479a1f.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 6b2cbc8..f732985 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.