refactor: pyupgrade second iteration (#27461)

This commit is contained in:
Usama Sadiq
2021-05-11 11:24:07 +05:00
committed by GitHub
parent 4dae1abd67
commit 46993bff00
12 changed files with 17 additions and 17 deletions

View File

@@ -70,7 +70,7 @@ class EmbargoedCourse(models.Model):
not_em = "Not "
if self.embargoed:
not_em = ""
return "Course '{}' is {}Embargoed".format(str(self.course_id), not_em)
return f"Course '{str(self.course_id)}' is {not_em}Embargoed"
@python_2_unicode_compatible