Skip to content

Commit

Permalink
request: use any(), for nicer layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ederag committed Jan 30, 2018
1 parent 7ab7646 commit cd469df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_z_cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,10 @@ def _alwayscopy_not_supported():
if hasattr(platform, 'linux_distribution'):
_dist = platform.linux_distribution(full_distribution_name=False)
(name, version, arch) = _dist
if (
(name == 'centos' and version[0] == '7') or
(name == 'SuSE' and arch == 'x86_64')
):
if any((
name == 'centos' and version[0] == '7',
name == 'SuSE' and arch == 'x86_64',
)):
return True
return False

Expand Down

0 comments on commit cd469df

Please sign in to comment.