Skip to content

Commit

Permalink
final pep8ification
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Marin committed Nov 1, 2017
1 parent ce6092d commit 8840a8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mrjob/pool.py
Expand Up @@ -80,7 +80,7 @@ def _instance_groups_satisfy(actual_igs, requested_igs):
# verify format of requested_igs
if not (isinstance(requested_igs, (list, tuple)) and
all(isinstance(req_ig, dict) and 'InstanceRole' in req_ig
for req_ig in requested_igs)):
for req_ig in requested_igs)):
log.debug(' bad instance_groups config')
return None

Expand Down Expand Up @@ -234,7 +234,7 @@ def _instance_fleets_satisfy(actual_fleets, req_fleets):
# verify format of requested_igs
if not (isinstance(req_fleets, (list, tuple)) and
all(isinstance(req_ft, dict) and 'InstanceFleetType' in req_ft
for req_ft in req_fleets)):
for req_ft in req_fleets)):
log.debug(' bad instance_fleets config')
return None

Expand Down
1 change: 1 addition & 0 deletions tests/test_inline.py
Expand Up @@ -29,6 +29,7 @@
from tests.sandbox import SandboxedTestCase
from tests.test_sim import MRIncrementerJob


# the inline runner is extensively used in test_sim.py, so there are not
# many inline-specific tests

Expand Down
2 changes: 1 addition & 1 deletion tests/test_local.py
Expand Up @@ -834,7 +834,7 @@ def test_default_sort_bin_sort_values(self):

self.assertEqual(sort_args[:1], ['sort'])
self.assertNotEqual(sort_args[:6],
['sort', '-t', '\t', '-k', '1,1', '-s'])
['sort', '-t', '\t', '-k', '1,1', '-s'])

def test_custom_sort_bin(self):
job = MRGroup(['-r', 'local', '--sort-bin', 'sort -r'])
Expand Down

0 comments on commit 8840a8f

Please sign in to comment.