cache plugins: use f-strings (#9320)

* cache plugins: use f-strings

* add changelog frag
This commit is contained in:
Alexei Znamensky 2024-12-23 22:02:58 +13:00 committed by GitHub
parent c7edf0a87b
commit cb2cd00cd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View file

@ -191,7 +191,7 @@ class CacheModule(BaseCacheModule):
self._keys = CacheModuleKeys(self._db, self._db.get(CacheModuleKeys.PREFIX) or [])
def _make_key(self, key):
return "{0}{1}".format(self._prefix, key)
return f"{self._prefix}{key}"
def _expire_keys(self):
if self._timeout > 0: