Skip to content

Commit 2d2afb5

Browse files
committed
Format black
1 parent 7f157cd commit 2d2afb5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pysqa/wrapper/torque.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ def delete_job_command(self):
2828
@property
2929
def get_queue_status_command(self):
3030
return ["qstat", "-x"]
31-
31+
3232
@staticmethod
3333
def get_job_id_from_output(queue_submit_output):
34-
# strip last line from output, leading and trailing whitespaces, and separates the queue id from the stuff after "."
34+
# strip last line from output, leading and trailing whitespaces, and separates the queue id from the stuff after "."
3535
# Adjust if your system doesn't have output like below!
3636
# e.g. qsub run_queue.sh -> "12347673.gadi-pbs", the below returns 12347673
3737
# It must return an integer for it to not raise an exception later.
38-
return int(queue_submit_output.splitlines()[-1].rstrip().lstrip().split(sep=".")[0])
38+
return int(
39+
queue_submit_output.splitlines()[-1].rstrip().lstrip().split(sep=".")[0]
40+
)

0 commit comments

Comments
 (0)