Fix ansible-test pylint and pep8 issues. (#24245)

* Fix pylint useless-super-delegation issues.
* Fix miscellaneous pylint issues.
* Fix PEP 8 issues.
* Fix warnings reported by PyCharm.
This commit is contained in:
Matt Clay 2017-05-03 23:19:44 +08:00 committed by GitHub
parent a93aa6dc04
commit 6522d703a1
15 changed files with 22 additions and 71 deletions

View file

@ -323,8 +323,8 @@ class CompletionTarget(object):
def __eq__(self, other):
if isinstance(other, CompletionTarget):
return self.__repr__() == other.__repr__()
else:
return False
return False
def __ne__(self, other):
return not self.__eq__(other)