1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/sysutils/py-salt/files/patch-salt_loader.py
Kirill Ponomarev c9b6b11d28 Update to 3002
Changes: https://salt.tips/whats-new-in-salt-magnesium

PR:		250519
Approved by:	maintainer
2020-10-22 14:00:36 +00:00

12 lines
545 B
Python

--- salt/loader.py.orig 2020-10-22 05:33:25 UTC
+++ salt/loader.py
@@ -1468,7 +1468,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