Skip to content

Commit 8514322

Browse files
committed
Fix flake8 issue in other file
1 parent 8b210dd commit 8514322

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sagemaker_pytorch_serving_container/torchserve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def start_torchserve(handler_service=DEFAULT_HANDLER_SERVICE):
9393
]
9494

9595
default_model_path_args = ["--models", DEFAULT_TS_MODEL_NAME + "=" + environment.model_dir]
96-
96+
9797
if not ENABLE_MULTI_MODEL:
9898
ts_torchserve_cmd += default_model_path_args
9999

test/utils/file_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
def make_tarfile(script, model, output_path, filename="model.tar.gz", script_path=None):
2020
output_filename = os.path.join(output_path, filename)
2121
with tarfile.open(output_filename, "w:gz") as tar:
22-
if(script_path):
22+
if (script_path):
2323
tar.add(script, arcname=os.path.join(script_path, os.path.basename(script)))
2424
else:
2525
tar.add(script, arcname=os.path.basename(script))

0 commit comments

Comments
 (0)