mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Updated models.py with f-strings.
This commit is contained in:
parent
37912417dc
commit
02397aca0b
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue