mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 04:30:37 -04:00
- Fix the py3 loader issue PR: 231609 Submitted by: christer.edwards@gmail.com(maintainer)
11 lines
495 B
Python
11 lines
495 B
Python
--- salt/loader.py
|
|
+++ salt/loader.py
|
|
@@ -1240,7 +1240,7 @@
|
|
try:
|
|
pycache_files = [
|
|
os.path.join('__pycache__', x) for x in
|
|
- sorted(os.listdir(os.path.join(mod_dir, '__pycache__')))
|
|
+ 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
|