aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/configs/manager.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py
index c3408ec..c03222d 100644
--- a/fg21sim/configs/manager.py
+++ b/fg21sim/configs/manager.py
@@ -31,10 +31,7 @@ logger = logging.getLogger(__name__)
def _get_configspec():
"""Found and read all the configuration specifications"""
files = sorted(pkg_resources.resource_listdir(__name__, ""))
- # NOTE:
- # Explicit convert the filter results to a list, since the returned
- # iterator can ONLY be used ONCE.
- specfiles = list(filter(lambda fn: fn.endswith(".conf.spec"), files))
+ specfiles = [fn for fn in files if fn.endswith(".conf.spec")]
if os.environ.get("DEBUG_FG21SIM"):
print("DEBUG: Found config specifications: %s" % ", ".join(specfiles),
file=sys.stderr)