mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-07 03:35:07 -05:00
scripts: use in even more
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
@@ -36,9 +36,9 @@ ret = 0
|
||||
with open(symfile, "r") as fh:
|
||||
for line in fh:
|
||||
line = line.strip()
|
||||
if line.find("{") != -1:
|
||||
if "{" in line:
|
||||
continue
|
||||
if line.find("}") != -1:
|
||||
if "}" in line:
|
||||
continue
|
||||
if line in ["global:", "local:"]:
|
||||
continue
|
||||
@@ -46,7 +46,7 @@ with open(symfile, "r") as fh:
|
||||
continue
|
||||
if line[0] == '#':
|
||||
continue
|
||||
if line.find("*") != -1:
|
||||
if "*" in line:
|
||||
continue
|
||||
|
||||
line = line.strip(";")
|
||||
|
||||
Reference in New Issue
Block a user