From 2f3f4eccdf3ab178235128aa9409e2895d21ecd8 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 26 Oct 2024 10:22:59 -0400 Subject: [PATCH] Updated comment to match new behavior. --- keyring/backends/Windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyring/backends/Windows.py b/keyring/backends/Windows.py index 56168479..33bed8b1 100644 --- a/keyring/backends/Windows.py +++ b/keyring/backends/Windows.py @@ -162,7 +162,7 @@ def get_credential(self, service, username): # get the credentials associated with the provided username if username: res = self._get_password(self._compound_name(username, service)) - # get any first password under the service name + # get a credential matching service and username if provided if not res: cred = self._get_password(service) res = cred if username is None or username == cred["UserName"] else None