Skip to content

Commit

Permalink
Removed a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Rilla committed Jul 26, 2024
1 parent 9656e43 commit 598f70d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions monai/utils/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,7 @@ def version_leq(lhs: str, rhs: str) -> bool:
if has_ver:
try:
return cast(bool, version(lhs) <= version(rhs))
# return cast(bool, pkging.version.Version(lhs) <= pkging.version.Version(rhs))
except version.InvalidVersion:
# except pkging.version.InvalidVersion:
return True

lhs_, rhs_ = parse_version_strs(lhs, rhs)
Expand All @@ -601,9 +599,7 @@ def version_geq(lhs: str, rhs: str) -> bool:
if has_ver:
try:
return cast(bool, version(lhs) >= version(rhs))
# return cast(bool, pkging.version.Version(lhs) >= pkging.version.Version(rhs))
except version.InvalidVersion:
# except pkging.version.InvalidVersion:
return True

lhs_, rhs_ = parse_version_strs(lhs, rhs)
Expand Down

0 comments on commit 598f70d

Please sign in to comment.