Coding style.

- Got the sense of this the wrong way round.
  This might be clearer.
This commit is contained in:
Andrew Hamilton 2017-07-06 20:46:22 +01:00
parent 40fa5575dd
commit 2b11c6e88d

View file

@ -860,10 +860,8 @@ TOOLS_FOR_EXTENSIONS = \
def is_tool_in_distribution(tool, distribution):
try:
return distribution not in tool.missing_in
except AttributeError:
return False
return (not hasattr(tool, "missing_in")
or distribution not in tool.missing_in)
def get_distro_id():