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/Lint/InfoXML.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/Bcfg2/Server/Lint/InfoXML.py') diff --git a/src/lib/Bcfg2/Server/Lint/InfoXML.py b/src/lib/Bcfg2/Server/Lint/InfoXML.py index 950a86f01..cd21371e7 100644 --- a/src/lib/Bcfg2/Server/Lint/InfoXML.py +++ b/src/lib/Bcfg2/Server/Lint/InfoXML.py @@ -29,11 +29,11 @@ class InfoXML(Bcfg2.Server.Lint.ServerPlugin): if 'Cfg' not in self.core.plugins: return - for filename, entryset in self.core.plugins['Cfg'].entries.items(): + for filename, entryset in list(self.core.plugins['Cfg'].entries.items()): infoxml_fname = os.path.join(entryset.path, "info.xml") if self.HandlesFile(infoxml_fname): found = False - for entry in entryset.entries.values(): + for entry in list(entryset.entries.values()): if isinstance(entry, CfgInfoXML): self.check_infoxml(infoxml_fname, entry.infoxml.xdata) -- cgit v1.2.3-1-g7c22