WeblateOrg / weblate

Consider using f-strings PYL-C0209
Performance
Minor
2 months ago2 years old
Formatting a regular string which could be a f-string
113if "CI_REDIS_HOST" in os.environ:
114    CACHES["avatar"] = {
115        "BACKEND": "django_redis.cache.RedisCache",
116        "LOCATION": "redis://{}:{}/0".format(117            os.environ["CI_REDIS_HOST"], os.environ.get("CI_REDIS_PORT", "6379")
118        ),
119    }