Style fixes for flake8

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
This commit is contained in:
Maxime Petazzoni 2013-12-24 10:07:25 -08:00
parent 016a4d961c
commit ef009e114a
2 changed files with 4 additions and 3 deletions

View File

@ -276,10 +276,9 @@ class Client(requests.Session):
if not length:
break
data = recvall(socket, length)
if data:
yield data
else:
if not data:
break
yield data
def attach(self, container):
socket = self.attach_socket(container)

View File

@ -274,6 +274,7 @@ class TestLogs(BaseTestCase):
logs = self.client.logs(id)
self.assertEqual(logs, snippet + '\n')
class TestLogsStreaming(BaseTestCase):
def runTest(self):
snippet = 'Flowering Nights (Sakuya Iyazoi)'
@ -292,6 +293,7 @@ class TestLogsStreaming(BaseTestCase):
self.assertEqual(logs, snippet + '\n')
class TestLogsWithDictInsteadOfId(BaseTestCase):
def runTest(self):
snippet = 'Flowering Nights (Sakuya Iyazoi)'