qa/coccinelle: port struct-flags.py to Python3

pull/4420/head
Eric Leblond 6 years ago committed by Victor Julien
parent b58d508bff
commit f745f0655b

@ -42,16 +42,16 @@ struct%d->%s@p1 &= ~struct_flags%d
i += 1 i += 1
print header print(header)
print "position p1;" print("position p1;")
print "@@" print("@@")
print "" print("")
print "(" + "|".join(body) + ")" print("(" + "|".join(body) + ")")
print "" print("")
print """@script:python@ print("""@script:python@
p1 << flags.p1; p1 << flags.p1;
@@ @@
print "Invalid usage of flags field at %s:%s, flags value is incorrect (wrong family)." % (p1[0].file, p1[0].line) print "Invalid usage of flags field at %s:%s, flags value is incorrect (wrong family)." % (p1[0].file, p1[0].line)
import sys import sys
sys.exit(1)""" sys.exit(1)""")

Loading…
Cancel
Save