From 908e1b9a0cd3e6ceef860991da5139a62dd2e4a3 Mon Sep 17 00:00:00 2001 From: Feng Shengqin Date: Sat, 16 Sep 2017 09:35:51 +0800 Subject: [PATCH] TrivialFix: the format of the annotation Change-Id: Ib93236f96dfb0f1544660eb66f62233e9abf16b5 --- .../common/websocketclient/exceptions.py | 2 +- .../common/websocketclient/websocketclient.py | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/zunclient/common/websocketclient/exceptions.py b/zunclient/common/websocketclient/exceptions.py index 81ebaa25..fcc9c2f7 100644 --- a/zunclient/common/websocketclient/exceptions.py +++ b/zunclient/common/websocketclient/exceptions.py @@ -15,7 +15,7 @@ class ContainerWebSocketException(Exception): - 'base for all ContainerWebSocket interactive generated exceptions' + """base for all ContainerWebSocket interactive generated exceptions""" def __init__(self, wrapped=None, message=None): self.wrapped = wrapped if message: diff --git a/zunclient/common/websocketclient/websocketclient.py b/zunclient/common/websocketclient/websocketclient.py index 45d6cb17..57ef3971 100644 --- a/zunclient/common/websocketclient/websocketclient.py +++ b/zunclient/common/websocketclient/websocketclient.py @@ -67,9 +67,9 @@ class BaseClient(object): def tty_resize(self, height, width): """Resize the tty session - Get the client and send the tty size data to zun api server - The environment variables need to get when implement sending - operation. + Get the client and send the tty size data to zun api server + The environment variables need to get when implement sending + operation. """ raise NotImplementedError() @@ -239,7 +239,7 @@ class WebSocketClient(BaseClient): self.ws = websocket.create_connection( url, skip_utf8_validation=True, subprotocols=["binary", "base64"]) - print('connected to %s ,press Enter to continue' % self.id) + print('connected to %s, press Enter to continue' % self.id) print('type %s. to disconnect' % self.escape) except socket.error as e: raise exceptions.ConnectionFailed(e) @@ -260,9 +260,9 @@ class WebSocketClient(BaseClient): def tty_resize(self, height, width): """Resize the tty session - Get the client and send the tty size data to zun api server - The environment variables need to get when implement sending - operation. + Get the client and send the tty size data to zun api server + The environment variables need to get when implement sending + operation. """ height = str(height) width = str(width) @@ -300,9 +300,9 @@ class HTTPClient(BaseClient): def tty_resize(self, height, width): """Resize the tty session - Get the client and send the tty size data to zun api server - The environment variables need to get when implement sending - operation. + Get the client and send the tty size data to zun api server + The environment variables need to get when implement sending + operation. """ height = str(height) width = str(width)