From 2724e6409534a948b5a2c212ae0a7192326c1b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Fri, 19 Apr 2024 23:52:23 +0200 Subject: Run 2to3 on the entire project --- src/lib/Bcfg2/Server/Plugins/Bundler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/Bcfg2/Server/Plugins/Bundler.py') diff --git a/src/lib/Bcfg2/Server/Plugins/Bundler.py b/src/lib/Bcfg2/Server/Plugins/Bundler.py index 4f5a79465..bbdf62866 100644 --- a/src/lib/Bcfg2/Server/Plugins/Bundler.py +++ b/src/lib/Bcfg2/Server/Plugins/Bundler.py @@ -58,7 +58,7 @@ class Bundler(Plugin, def HandleEvent(self, event): XMLDirectoryBacked.HandleEvent(self, event) self.bundles = dict([(b.bundle_name, b) - for b in self.entries.values()]) + for b in list(self.entries.values())]) def validate_structures(self, metadata, structures): """ Translate entries into @@ -66,7 +66,7 @@ class Bundler(Plugin, for struct in structures: for pathglob in struct.xpath("//Path[@glob]"): for plugin in self.core.plugins_by_type(Generator): - for match in fnmatch.filter(plugin.Entries['Path'].keys(), + for match in fnmatch.filter(list(plugin.Entries['Path'].keys()), pathglob.get("glob")): lxml.etree.SubElement(pathglob.getparent(), "Path", name=match) -- cgit v1.2.3-1-g7c22