From 90ad2cdca29a51b92eadfbbd537629155fa2fe12 Mon Sep 17 00:00:00 2001 From: snake-biscuits <36507175+snake-biscuits@users.noreply.github.com> Date: Thu, 7 Nov 2024 13:53:01 +1000 Subject: [PATCH] (#73) `archive` -> `parent_archive` in `base.Bsp.from_archive` --- bsp_tool/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp_tool/base.py b/bsp_tool/base.py index d6cda20..f1a31c0 100644 --- a/bsp_tool/base.py +++ b/bsp_tool/base.py @@ -148,12 +148,12 @@ def unmount_file(self, filename: str): self.extras.pop(filename) @classmethod - def from_archive(cls, branch: ModuleType, filepath: str, archive, mount_extras=False) -> Bsp: - bsp = cls.from_bytes(branch, filepath, archive.read(filepath)) + def from_archive(cls, branch: ModuleType, filepath: str, parent_archive, mount_extras=False) -> Bsp: + bsp = cls.from_bytes(branch, filepath, parent_archive.read(filepath)) if mount_extras: extras = [ filename - for filename in archive.listdir(bsp.folder) + for filename in parent_archive.listdir(bsp.folder) for pattern in bsp.extra_patterns() if fnmatch.fnmatch(filename, pattern)] for filename in extras: