Skip to content

Commit

Permalink
Fix some lints complains
Browse files Browse the repository at this point in the history
  • Loading branch information
aplanas authored and dwoz committed May 18, 2020
1 parent d14f3cc commit 6af00cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions salt/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1565,8 +1565,10 @@ def __clean_sys_path(self):
# FileFinder that remain None for the extra_module_dirs
if invalidate_path_importer_cache:
for directory in self.extra_module_dirs:
if directory in sys.path_importer_cache \
and sys.path_importer_cache[directory] is None:
if (
directory in sys.path_importer_cache
and sys.path_importer_cache[directory] is None
):
del sys.path_importer_cache[directory]

def _load_module(self, name):
Expand Down

0 comments on commit 6af00cb

Please sign in to comment.