Fixed compatibility with Python 2.x

This commit is contained in:
Manuel Cortez 2019-01-11 03:18:31 -06:00
parent 14a2313e5f
commit acb57bffb4

View File

@ -78,7 +78,7 @@ class userProfilePresenter(base.basePresenter):
self.send_message("set", tab="main_info", control="name", value=n) self.send_message("set", tab="main_info", control="name", value=n)
# Format title # Format title
user = self.session.get_user(person["id"]) user = self.session.get_user(person["id"])
self.send_message("set_title", value=_("{user1_nom}'s profile").format(**user,)) self.send_message("set_title", value=_("{user1_nom}'s profile").format(**user))
# Format website (or websites, if there are multiple of them). # Format website (or websites, if there are multiple of them).
if "site" in person and person["site"] != "": if "site" in person and person["site"] != "":
self.send_message("enable_control", tab="main_info", control="website") self.send_message("enable_control", tab="main_info", control="website")