From 52ce10639932cc9da4c471864bdb315e6f33a295 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 20 Jan 2020 15:37:57 +0100 Subject: [PATCH] Change _loadMetadata to be static CURA-6627 --- plugins/3MFReader/ThreeMFWorkspaceReader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/3MFReader/ThreeMFWorkspaceReader.py b/plugins/3MFReader/ThreeMFWorkspaceReader.py index e92b60976b..ba169f3dab 100755 --- a/plugins/3MFReader/ThreeMFWorkspaceReader.py +++ b/plugins/3MFReader/ThreeMFWorkspaceReader.py @@ -736,7 +736,8 @@ class ThreeMFWorkspaceReader(WorkspaceReader): return nodes, self._loadMetadata(file_name) - def _loadMetadata(self, file_name) -> Dict[str, Dict[str, Any]]: + @staticmethod + def _loadMetadata(file_name: str) -> Dict[str, Dict[str, Any]]: archive = zipfile.ZipFile(file_name, "r") metadata_files = [name for name in archive.namelist() if name.endswith("plugin_metadata.json")]