Skip to content

Commit 6883c11

Browse files
[pre-commit.ci] Auto fixes from pre-commit.com hooks.
1 parent fa4c827 commit 6883c11

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

games/baldursgate3/lslib_retriever.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,20 @@ def reporthook(block_num: int, block_size: int, total_size: int) -> None:
122122
dialog_message = "Extracting/Updating LSLib files..."
123123
win_title = "Extracting LSLib"
124124
with zipfile.ZipFile(zip_path, "r") as zip_ref:
125-
names = list(filter(lambda name: name.startswith("Packed/Tools"), zip_ref.namelist()))
125+
names = list(
126+
filter(
127+
lambda name: name.startswith("Packed/Tools"), zip_ref.namelist()
128+
)
129+
)
126130
qDebug(f"found files: {','.join(names)}")
127131
x_progress = self._utils.create_progress_window(
128132
win_title, len(names), msg=dialog_message
129133
)
130134
for file in names:
131-
shutil.move(zip_ref.extract(file, self._utils.tools_dir), self._utils.tools_dir)
135+
shutil.move(
136+
zip_ref.extract(file, self._utils.tools_dir),
137+
self._utils.tools_dir,
138+
)
132139
x_progress.setValue(x_progress.value() + 1)
133140
QApplication.processEvents()
134141
if x_progress.wasCanceled():

0 commit comments

Comments
 (0)