Skip to content

Commit

Permalink
Merge pull request #44 from xeacott/joe/quick_fix
Browse files Browse the repository at this point in the history
quick change to module discovery
  • Loading branch information
s0undt3ch authored Mar 12, 2021
2 parents bf92323 + 7c796ab commit 36fcd20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saltpylint/thirdparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 36fcd20

Please sign in to comment.