Skip to content

Commit bda7642

Browse files
committed
chore: pre-commit
1 parent c8e8df2 commit bda7642

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

bottles/backend/wine/executor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def __launch_exe(self):
283283
pre_script=self.pre_script,
284284
post_script=self.post_script,
285285
cwd=self.cwd,
286-
disc_image=self.disc_image
286+
disc_image=self.disc_image,
287287
)
288288
res = winecmd.run()
289289
self.__set_monitors()

bottles/backend/wine/winecommand.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def get_cmd(
606606

607607
if pre_script not in (None, ""):
608608
command = f"sh '{pre_script}' ; {command}"
609-
609+
610610
if disc_image is not None:
611611
# Mount/unmount disc image on temp mount point
612612
mount_point = "/tmp/bottles/disc"
@@ -620,10 +620,7 @@ def get_cmd(
620620
# Assign path to first free drive letter
621621
drives = Drives(self.config)
622622
alphabet = string.ascii_uppercase
623-
letter = next(
624-
c for c in alphabet
625-
if c >= "D" and not drives.get_drive(c)
626-
)
623+
letter = next(c for c in alphabet if c >= "D" and not drives.get_drive(c))
627624
drives.set_drive_path(letter, mount_point)
628625

629626
return command

bottles/frontend/windows/launchoptions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def __init__(self, parent, config, program, **kwargs):
191191
):
192192
self.action_cwd.set_subtitle(program["folder"])
193193
self.btn_cwd_reset.set_visible(True)
194-
194+
195195
if program.get("disc_image") not in ["", None]:
196196
self.action_disc_image.set_subtitle(program["disc_image"])
197197
self.btn_disc_image_reset.set_visible(True)
@@ -354,7 +354,7 @@ def __reset_cwd(self, *_args):
354354
)
355355
self.action_cwd.set_subtitle(self.__default_cwd_msg)
356356
self.btn_cwd_reset.set_visible(False)
357-
357+
358358
def __choose_disc_image(self, *_args):
359359
def set_path(dialog, response):
360360
if response != Gtk.ResponseType.ACCEPT:

0 commit comments

Comments
 (0)