Skip to content

Commit ebf9ee3

Browse files
committed
fix grammar and comparison logic
1 parent e598a7b commit ebf9ee3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymongo/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,4 +1171,4 @@ def check_for_min_version(package_version: str, package_name: str) -> tuple[str,
11711171
if ";" in requirement:
11721172
requirement = requirement.split(";")[0]
11731173
required_version = requirement[requirement.find(">=") + 2 :]
1174-
return required_version, package_version > Version.from_string(required_version)
1174+
return required_version, package_version >= Version.from_string(required_version)

pymongo/encryption_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def check_min_pymongocrypt() -> None:
4545
required_version, is_valid = check_for_min_version(pymongocrypt_version, "pymongocrypt")
4646
if not is_valid:
4747
raise ConfigurationError(
48-
f"client side encryption requires the pymongocrypt>={required_version}, "
48+
f"client side encryption requires pymongocrypt>={required_version}, "
4949
f"found version {pymongocrypt_version}. "
5050
"Install a compatible version with: "
5151
"python -m pip install 'pymongo[encryption]'"

0 commit comments

Comments
 (0)