Coding style.
- Got the sense of this the wrong way round. This might be clearer.
This commit is contained in:
parent
40fa5575dd
commit
2b11c6e88d
1 changed files with 2 additions and 4 deletions
|
|
@ -860,10 +860,8 @@ TOOLS_FOR_EXTENSIONS = \
|
||||||
|
|
||||||
|
|
||||||
def is_tool_in_distribution(tool, distribution):
|
def is_tool_in_distribution(tool, distribution):
|
||||||
try:
|
return (not hasattr(tool, "missing_in")
|
||||||
return distribution not in tool.missing_in
|
or distribution not in tool.missing_in)
|
||||||
except AttributeError:
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
def get_distro_id():
|
def get_distro_id():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue