From 642723c222ae6701d6b8da17039b6e24fd09f235 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Tue, 14 Jul 2015 00:13:31 +0300 Subject: 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. --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') 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. -- cgit v1.2.1