Skip to content

Commit

Permalink
CU-8694ggtgm: Replace use of 3.9+ exclusive string method
Browse files Browse the repository at this point in the history
  • Loading branch information
mart-r committed May 16, 2024
1 parent 9fd5e57 commit 7e07a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medcat/compare_models/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _is_medcat_model_folder(model_folder: str):
def is_medcat_model(model_path: str) -> bool:
if os.path.isdir(model_path):
return _is_medcat_model_folder(model_path)
model_folder = model_path.removesuffix(".zip")
model_folder = model_path[:-len(".zip")]
if os.path.exists(model_folder):
# NOTE: if the model folder doesn't exist, it will
# be extracted upon loading the model
Expand Down

0 comments on commit 7e07a5a

Please sign in to comment.