mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 23:16:30 +03:00
python: upgrade from .format() to f-strings
They are supported since Python 3.5.
This commit is contained in:
@@ -31,7 +31,7 @@ class Contact(object):
|
||||
return not self == other
|
||||
|
||||
def __repr__(self):
|
||||
return "<Contact id={} addr={} dc_context={}>".format(self.id, self.addr, self.account._dc_context)
|
||||
return f"<Contact id={self.id} addr={self.addr} dc_context={self.account._dc_context}>"
|
||||
|
||||
@property
|
||||
def _dc_contact(self):
|
||||
|
||||
Reference in New Issue
Block a user