diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-07-14 00:13:31 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-07-14 00:13:31 +0300 |
commit | 3f163ad00a0019e987039ed4894d4df8ad479a1f (patch) | |
tree | c432bfddb0c8cdae9615d0a842870fb4130be7e4 /ChangeLog | |
parent | 41f07a39030b31eaf7e2a262618bf32014deb7b7 (diff) | |
download | astroid-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-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |