Small refactor for clarity

This commit is contained in:
Aanand Prasad 2013-12-20 10:52:46 +00:00
parent 4a729fe47f
commit aa7a5a1487
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ class LogPrinter(object):
return generators
def _make_log_generator(self, container, color_fn):
format = lambda line: color_fn(container.name + " | ") + line
return (format(line) for line in self._readlines(self._attach(container)))
prefix = color_fn(container.name + " | ")
return (prefix + line for line in self._readlines(self._attach(container)))
def _attach(self, container):
params = {