Skip to content

Commit 252261e

Browse files
committed
Fix code style issues with Black
1 parent 63a1378 commit 252261e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

basilico.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -678,19 +678,19 @@ def umount(self, _cmd: str, dev: str):
678678

679679
def _umount_internal(self, dev):
680680
try:
681-
result = subprocess.run(['lsblk', '-J', dev], capture_output=True, text=True)
681+
result = subprocess.run(["lsblk", "-J", dev], capture_output=True, text=True)
682682

683683
if result.returncode != 0:
684684
return False
685685

686686
lsblk_output = json.loads(result.stdout)
687687

688688
partitions_to_unmount = []
689-
blockdevices = lsblk_output.get('blockdevices', [])
689+
blockdevices = lsblk_output.get("blockdevices", [])
690690
for device in blockdevices:
691-
if 'children' in device:
692-
for partition in device['children']:
693-
if 'mountpoints' in partition and len(partition['mountpoints']) > 0:
691+
if "children" in device:
692+
for partition in device["children"]:
693+
if "mountpoints" in partition and len(partition["mountpoints"]) > 0:
694694
partitions_to_unmount.append(f"/dev/{partition['name']}")
695695
break
696696

pinolo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ def queue_info(self):
383383
def umount_disk(self):
384384
dialog = warning_dialog(
385385
"Are you really sure you want to umount this disk?\nThis is generally not a good idea, proceed only if you are really sure of what are you doing.",
386-
"yes_no"
387-
)
386+
"yes_no",
387+
)
388388

389389
if dialog == QMessageBox.Yes:
390390
drives = self.get_multiple_drive_selection()

0 commit comments

Comments
 (0)