Skip to content

Commit

Permalink
Fix code style issues with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
weee-open-bot committed Dec 5, 2024
1 parent fd24cb7 commit 7253f49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions basilico.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def cannolo(self, _cmd: str, dev_and_iso: str):
subprocess.run("udevadm settle", shell=True)
part_path, part_number = self._get_last_linux_partition_path_and_number(dev)
if part_number is None:
success=False
success = False
raise Exception("Partition to be resized not found")
success = run_command_on_partition(dev, f"sudo growpart {dev} {part_number}")
if not success:
Expand Down Expand Up @@ -971,7 +971,7 @@ def _encode_param(param):
return json.dumps(param, separators=(",", ":"), indent=None)

def send_msg(self, cmd: str, param=None, the_id: Optional[int] = None, doLog=True):
if(doLog):
if doLog:
logging.debug(f"[{self._the_id}] Sending {cmd}{ ' with args' if param else ''} to client")
logging.debug(f"{param}")
the_id = the_id or self._the_id
Expand Down Expand Up @@ -1023,8 +1023,8 @@ def dd(self, inputf: str, outputf: str, bs: int = 4096, output_delay: float = 1.
elapsed_time = 0
actual_time = time.time()
while True:
#capture asap stop request from client
if ( not self._go):
# capture asap stop request from client
if not self._go:
return False
if fout.write(fin.read(bs)) == 0:
fout.flush()
Expand Down

0 comments on commit 7253f49

Please sign in to comment.