Skip to content

Commit c39a0b0

Browse files
committed
Update pep8, fix errors and freeze requirements-dev.txt
Signed-off-by: Aanand Prasad <[email protected]>
1 parent 8a7b3fb commit c39a0b0

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

compose/cli/log_printer.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ def _make_log_generators(self, monochrome):
3939
color_fns = cycle(colors.rainbow())
4040
generators = []
4141

42+
def no_color(text):
43+
return text
44+
4245
for container in self.containers:
4346
if monochrome:
44-
color_fn = lambda s: s
47+
color_fn = no_color
4548
else:
4649
color_fn = color_fns.next()
4750
generators.append(self._make_log_generator(container, color_fn))

compose/project.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def sort_service_dicts(services):
1515
temporary_marked = set()
1616
sorted_services = []
1717

18-
get_service_names = lambda links: [link.split(':')[0] for link in links]
18+
def get_service_names(links):
19+
return [link.split(':')[0] for link in links]
1920

2021
def visit(n):
2122
if n['name'] in temporary_marked:

requirements-dev.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
mock >= 1.0.1
2-
nose
2+
nose==1.3.4
33
git+https://github.com/pyinstaller/pyinstaller.git@12e40471c77f588ea5be352f7219c873ddaae056#egg=pyinstaller
4-
unittest2
5-
flake8
4+
unittest2==0.8.0
5+
flake8==2.3.0
6+
pep8==1.6.1

0 commit comments

Comments
 (0)