From 0b5ab33c81a753ad732bfa5cdcf933bb2167a12c Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Tue, 1 Dec 2015 10:33:33 +0200 Subject: Refactor things through the imports checker This patch transforms some public functions / methods to private and moves some blocks of code into their own functions. Through the latter, a couple of new messages are now emitted even though the module couldn't be imported, such as reimported, which doesn't make sense to not emit in this case. --- pylint/test/functional/reimported.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 pylint/test/functional/reimported.py (limited to 'pylint/test/functional/reimported.py') diff --git a/pylint/test/functional/reimported.py b/pylint/test/functional/reimported.py new file mode 100644 index 0000000..1025832 --- /dev/null +++ b/pylint/test/functional/reimported.py @@ -0,0 +1,7 @@ +# pylint: disable=missing-docstring,unused-import,import-error + +from time import sleep, sleep # [reimported] +from lala import missing, missing # [reimported] + +import missing1 +import missing1 # [reimported] -- cgit v1.2.1