blob: f889f3c70adb944409dd9ef710f31f4b675c1b4d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- salt/loader.py.orig 2020-06-18 07:20:08 UTC
+++ salt/loader.py
@@ -1383,9 +1383,7 @@ class LazyLoader(salt.utils.lazy.LazyDict):
try:
pycache_files = [
os.path.join("__pycache__", x)
- for x in sorted(
- os.listdir(os.path.join(mod_dir, "__pycache__"))
- )
+ for x in sorted(os.listdir(os.path.join(mod_dir, '__pycache__'))) if not x.endswith('opt-1.pyc') and not x.endswith('opt-2.pyc')
]
except OSError:
pass
|