Update pep8, fix errors and freeze requirements-dev.txt

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2015-02-11 19:00:13 +00:00
commit c39a0b0a2d
3 changed files with 10 additions and 5 deletions

View file

@ -39,9 +39,12 @@ class LogPrinter(object):
color_fns = cycle(colors.rainbow())
generators = []
def no_color(text):
return text
for container in self.containers:
if monochrome:
color_fn = lambda s: s
color_fn = no_color
else:
color_fn = color_fns.next()
generators.append(self._make_log_generator(container, color_fn))

View file

@ -15,7 +15,8 @@ def sort_service_dicts(services):
temporary_marked = set()
sorted_services = []
get_service_names = lambda links: [link.split(':')[0] for link in links]
def get_service_names(links):
return [link.split(':')[0] for link in links]
def visit(n):
if n['name'] in temporary_marked: