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
parent 8a7b3fb0eb
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:

View File

@ -1,5 +1,6 @@
mock >= 1.0.1
nose
nose==1.3.4
git+https://github.com/pyinstaller/pyinstaller.git@12e40471c77f588ea5be352f7219c873ddaae056#egg=pyinstaller
unittest2
flake8
unittest2==0.8.0
flake8==2.3.0
pep8==1.6.1