Change comprehension to list() in plugin loader.

This commit is contained in:
Matt Clay 2020-06-18 10:54:47 -07:00
parent 89afb60999
commit bccf6b85f2
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- Minor code cleanup in plugin loader.

View file

@ -981,7 +981,7 @@ class Jinja2Loader(PluginLoader):
# We have to instantiate a list of all plugins so that we can reverse it. We reverse it so
# that calling code will deduplicate this correctly.
plugins = [p for p in super(Jinja2Loader, self).all(*args, **kwargs)]
plugins = list(super(Jinja2Loader, self).all(*args, **kwargs))
plugins.reverse()
return plugins