Skip to content

Commit

Permalink
Merge pull request #426 from martin-belanger/black-fixes
Browse files Browse the repository at this point in the history
Black: making code compatible with latest version of black
  • Loading branch information
martin-belanger authored Apr 29, 2024
2 parents f342950 + d75c240 commit 6960f41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions staslib/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,11 +809,7 @@ def _config_ctrls_finish(self, configured_ctrl_list: list):
origin = (
'configured'
if tid in configured_ctrl_list
else 'referral'
if tid in referral_ctrl_list
else 'discovered'
if tid in discovered_ctrl_list
else None
else 'referral' if tid in referral_ctrl_list else 'discovered' if tid in discovered_ctrl_list else None
)
if origin is not None:
controller.origin = origin
Expand Down
3 changes: 1 addition & 2 deletions test/test-udev.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ def get_tids_to_test(family, src_ip, ifname):
]


class DummyDevice:
...
class DummyDevice: ...


class Test(unittest.TestCase):
Expand Down

0 comments on commit 6960f41

Please sign in to comment.