From 02397aca0b21aebf09c94153d401409ca60ccc30 Mon Sep 17 00:00:00 2001 From: Kovitikus Date: Tue, 10 Sep 2019 13:24:16 -0400 Subject: [PATCH] Updated models.py with f-strings. --- evennia/accounts/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/accounts/models.py b/evennia/accounts/models.py index a0283e2aef..79da54db34 100644 --- a/evennia/accounts/models.py +++ b/evennia/accounts/models.py @@ -137,10 +137,10 @@ class AccountDB(TypedObject, AbstractUser): # def __str__(self): - return smart_str("%s(account %s)" % (self.name, self.dbid)) + return smart_str(f"{self.name}(account {self.dbid})") def __repr__(self): - return "%s(account#%s)" % (self.name, self.dbid) + return f"{self.name}(account#{self.dbid})" #@property def __username_get(self):