Skip to content

Commit 09d226a

Browse files
author
Ubuntu
committed
codeStyleUpdate
1 parent 8538454 commit 09d226a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sagemaker/predictor_async.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ def check_output_file():
284284
output_file_found.set()
285285
except WaiterError:
286286
waiter_error_catched.set()
287-
pass
288287

289288
def check_failure_file():
290289
try:
@@ -297,15 +296,16 @@ def check_failure_file():
297296
failure_file_found.set()
298297
except WaiterError:
299298
waiter_error_catched.set()
300-
pass
301299

302300
output_thread = threading.Thread(target=check_output_file)
303301
failure_thread = threading.Thread(target=check_failure_file)
304302

305303
output_thread.start()
306304
failure_thread.start()
307305

308-
while not output_file_found.is_set() and not failure_file_found.is_set() and not waiter_error_catched.is_set():
306+
while (not output_file_found.is_set() and
307+
not failure_file_found.is_set()
308+
and not waiter_error_catched.is_set()):
309309
time.sleep(1)
310310

311311
if output_file_found.is_set():

0 commit comments

Comments
 (0)