Skip to content

Commit fe1a415

Browse files
committed
updating exception packaging, remove packaging from requirement-dev.txt file
Signed-off-by: DuretiShemsi <[email protected]>
1 parent e30869d commit fe1a415

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

monai/utils/module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def version_leq(lhs: str, rhs: str) -> bool:
567567
if has_ver:
568568
try:
569569
return cast(bool, pkging.version.Version(lhs) <= pkging.version.Version(rhs))
570-
except pkging.version.Version.InvalidVersion:
570+
except pkging.version.InvalidVersion:
571571
return True
572572

573573
lhs_, rhs_ = parse_version_strs(lhs, rhs)
@@ -594,7 +594,7 @@ def version_geq(lhs: str, rhs: str) -> bool:
594594
if has_ver:
595595
try:
596596
return cast(bool, pkging.version.Version(lhs) >= pkging.version.Version(rhs))
597-
except pkging.version.Version.InvalidVersion:
597+
except pkging.version.InvalidVersion:
598598
return True
599599

600600
lhs_, rhs_ = parse_version_strs(lhs, rhs)

requirements-dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,3 @@ nvidia-ml-py
5959
huggingface_hub
6060
pyamg>=5.0.0
6161
git+https://github.com/Project-MONAI/GenerativeModels.git@7428fce193771e9564f29b91d29e523dd1b6b4cd
62-
packaging

0 commit comments

Comments
 (0)