Change comprehension to list()
in plugin loader.
This commit is contained in:
parent
89afb60999
commit
bccf6b85f2
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/plugin-loader-cleanup.yml
Normal file
2
changelogs/fragments/plugin-loader-cleanup.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- Minor code cleanup in plugin loader.
|
|
@ -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
|
# 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.
|
# 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()
|
plugins.reverse()
|
||||||
|
|
||||||
return plugins
|
return plugins
|
||||||
|
|
Loading…
Reference in a new issue