1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-30 18:04:11 +02:00

Convert to using f-strings

This commit is contained in:
Dirk Müller
2024-01-06 09:54:57 +01:00
parent 130c1b4c14
commit a0a7865ca1
13 changed files with 460 additions and 465 deletions

View File

@@ -211,7 +211,7 @@ class KeyringCredentialsManager(AbstractCredentialsManager):
def set_password(self, url, user, password):
self._load_backend()
keyring.set_password(urlsplit(url)[1], user, password)
config_value = self._qualified_name() + ':' + self._backend_cls_name
config_value = f"{self._qualified_name()}:{self._backend_cls_name}"
self._cp.set(url, self.config_entry, config_value)
def delete_password(self, url, user):
@@ -317,7 +317,7 @@ def create_credentials_manager(url, cp):
def qualified_name(obj):
return obj.__module__ + '.' + obj.__class__.__name__
return f"{obj.__module__}.{obj.__class__.__name__}"
def has_keyring_support():