1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Change fstrings to string formatting

This commit is contained in:
David256 2021-04-01 16:52:12 -05:00
parent 6c90da793e
commit 2f69917a82

View File

@ -183,7 +183,7 @@ class User(JsonDeserializable, Dictionaryable, JsonSerializable):
def full_name(self): def full_name(self):
full_name = self.first_name full_name = self.first_name
if self.last_name: if self.last_name:
full_name += f' {self.last_name}' full_name += ' {0}'.format(self.last_name)
return full_name return full_name
def to_json(self): def to_json(self):