From 6f48143f4c60c555b3f571007cdc929ce90920b1 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Thu, 23 Sep 2021 11:51:04 +1000 Subject: Apply pyupgrade --py36-plus. This removes some 'u' prefixes and converts simple format() calls to f-strings. --- mediagoblin/db/mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mediagoblin/db/mixin.py') diff --git a/mediagoblin/db/mixin.py b/mediagoblin/db/mixin.py index 1a47c46f..dd78c791 100644 --- a/mediagoblin/db/mixin.py +++ b/mediagoblin/db/mixin.py @@ -188,7 +188,7 @@ class GenerateSlugMixin: # Can we just append the object's id to the end? if self.id: - slug_with_id = "{}-{}".format(slug, self.id) + slug_with_id = f"{slug}-{self.id}" if not self.check_slug_used(slug_with_id): self.slug = slug_with_id return # success! -- cgit v1.2.3