Replace finds with pythonic terms

This commit is contained in:
Daniel Martí 2013-12-20 09:34:03 +01:00
parent 8f3a2d4355
commit efc8317272
3 changed files with 8 additions and 10 deletions

View file

@ -101,7 +101,7 @@ def main():
cwd=tmp_dir, stdout=subprocess.PIPE)
out = p.communicate()[0]
lines = out.splitlines()
if len(lines) != 1 or lines[0].find('META-INF') == -1:
if len(lines) != 1 or 'META-INF' not in lines[0]:
raise Exception("Unexpected diff output - " + out)
print "...successfully verified"