diff options
author | Thom Wiggers <thom@thomwiggers.nl> | 2017-01-04 16:37:08 +0100 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2017-01-04 20:23:27 +0100 |
commit | 0ee16cdf6db38d29c94b5d9b65f595c8689e9242 (patch) | |
tree | 5dd4513e60915e7b4ee2ca95d9969965ef8845d6 | |
parent | c5068817d48b02852630ca2e21a61316fe1a6f36 (diff) | |
download | wee-slack-0ee16cdf6db38d29c94b5d9b65f595c8689e9242.tar.gz |
Format connection-info as unicode
-rw-r--r-- | wee_slack.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/wee_slack.py b/wee_slack.py index 5f4833a..51e86aa 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -293,12 +293,12 @@ class SlackServer(object): def print_connection_info(self, login_data): self.buffer_prnt('Connected to Slack', backlog=True) - self.buffer_prnt('{:<20} {}'.format("Websocket URL", login_data["url"]), backlog=True) - self.buffer_prnt('{:<20} {}'.format("User name", login_data["self"]["name"]), backlog=True) - self.buffer_prnt('{:<20} {}'.format("User ID", login_data["self"]["id"]), backlog=True) - self.buffer_prnt('{:<20} {}'.format("Team name", login_data["team"]["name"]), backlog=True) - self.buffer_prnt('{:<20} {}'.format("Team domain", login_data["team"]["domain"]), backlog=True) - self.buffer_prnt('{:<20} {}'.format("Team id", login_data["team"]["id"]), backlog=True) + self.buffer_prnt('{:<20} {}'.format(u"Websocket URL", login_data["url"]), backlog=True) + self.buffer_prnt('{:<20} {}'.format(u"User name", login_data["self"]["name"]), backlog=True) + self.buffer_prnt('{:<20} {}'.format(u"User ID", login_data["self"]["id"]), backlog=True) + self.buffer_prnt('{:<20} {}'.format(u"Team name", login_data["team"]["name"]), backlog=True) + self.buffer_prnt('{:<20} {}'.format(u"Team domain", login_data["team"]["domain"]), backlog=True) + self.buffer_prnt('{:<20} {}'.format(u"Team id", login_data["team"]["id"]), backlog=True) def create_local_buffer(self): if not w.buffer_search("", self.server_buffer_name): |