Collated PEP8 fixes (#25293)

- Make PEP8 compliant
This commit is contained in:
Dag Wieers 2017-06-02 13:14:11 +02:00 committed by John R Barker
commit 5553b20828
206 changed files with 1853 additions and 1870 deletions

View file

@ -33,8 +33,7 @@ class LookupModule(LookupBase):
def _raise_terms_error(msg=""):
raise AnsibleError(
"subelements lookup expects a list of two or three items, "
+ msg)
"subelements lookup expects a list of two or three items, " + msg)
terms[0] = listify_lookup_plugin_terms(terms[0], templar=self._templar, loader=self._loader)
@ -80,7 +79,7 @@ class LookupModule(LookupBase):
for subkey in subelements:
if subkey == subelements[-1]:
lastsubkey = True
if not subkey in subvalue:
if subkey not in subvalue:
if skip_missing:
continue
else:
@ -102,4 +101,3 @@ class LookupModule(LookupBase):
ret.append((item0, item1))
return ret