From 7c796ab46b13e9a203f038b86490380e9be56d89 Mon Sep 17 00:00:00 2001 From: Joe Eacott Date: Thu, 11 Mar 2021 17:26:28 -0700 Subject: [PATCH] quick change to module discovery --- saltpylint/thirdparty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saltpylint/thirdparty.py b/saltpylint/thirdparty.py index 1bea598..e88a304 100644 --- a/saltpylint/thirdparty.py +++ b/saltpylint/thirdparty.py @@ -69,7 +69,7 @@ class ThirdPartyImportsChecker(BaseChecker): unix_modules = ('posix', 'pwd', 'spwd', 'grp', 'crypt', 'termios', 'tty', 'pty', 'fcntl', 'pipes', 'resource', 'nis', 'syslog', 'posixpath') win_modules = ('msilib', 'msvcrt', 'winreg', 'winsound', 'ntpath') - all_modules = {m[1]: m[0].path for m in pkgutil.iter_modules()} + all_modules = {m[1]: m[0] for m in pkgutil.iter_modules()} std_modules_path = all_modules["os"] std_modules = [] for mod, path in all_modules.items():