mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
[PR #9320/cb2cd00c backport][stable-10] cache plugins: use f-strings (#9331)
cache plugins: use f-strings (#9320)
* cache plugins: use f-strings
* add changelog frag
(cherry picked from commit cb2cd00cd1
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
2499c1132d
commit
3c6131b451
3 changed files with 7 additions and 4 deletions
2
plugins/cache/memcached.py
vendored
2
plugins/cache/memcached.py
vendored
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue