Skip to content

Commit 0dc962b

Browse files
committed
Use split_fqdn
1 parent 03ccebe commit 0dc962b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymongo/asynchronous/srv_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(
9696
except Exception:
9797
raise ConfigurationError(_INVALID_HOST_MSG % (fqdn,)) from None
9898
self.__slen = len(self.__plist)
99-
self.nparts = len(self.__fqdn.split("."))
99+
self.nparts = len(split_fqdn)
100100

101101
async def get_options(self) -> Optional[str]:
102102
from dns import resolver

pymongo/synchronous/srv_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(
9696
except Exception:
9797
raise ConfigurationError(_INVALID_HOST_MSG % (fqdn,)) from None
9898
self.__slen = len(self.__plist)
99-
self.nparts = len(self.__fqdn.split("."))
99+
self.nparts = len(split_fqdn)
100100

101101
def get_options(self) -> Optional[str]:
102102
from dns import resolver

0 commit comments

Comments
 (0)