Merge pull request #2388 from dnephin/fix_long_lines

Wrap long lines
This commit is contained in:
Aanand Prasad 2016-02-25 16:52:33 -08:00
commit adb8de367e
11 changed files with 106 additions and 43 deletions

View file

@ -196,7 +196,9 @@ class Service(object):
if num_running != len(all_containers):
# we have some stopped containers, let's start them up again
stopped_containers = sorted([c for c in all_containers if not c.is_running], key=attrgetter('number'))
stopped_containers = sorted(
(c for c in all_containers if not c.is_running),
key=attrgetter('number'))
num_stopped = len(stopped_containers)