aboutsummaryrefslogtreecommitdiff
path: root/lib/wind/gen-errorlist.py
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-03-28 17:02:13 +0000
committerCy Schubert <cy@FreeBSD.org>2022-03-28 17:02:13 +0000
commit49af073ed77202a54dfdd773cbcbbf7835c75baf (patch)
treeb180dbeab238a3d30b8d99d05c9cf0e30fbadd5a /lib/wind/gen-errorlist.py
parentd684f11da759490a8d98d7b790796106285f4084 (diff)
Diffstat (limited to 'lib/wind/gen-errorlist.py')
-rw-r--r--lib/wind/gen-errorlist.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/wind/gen-errorlist.py b/lib/wind/gen-errorlist.py
index f0b9524783b4..97646cf5aed6 100644
--- a/lib/wind/gen-errorlist.py
+++ b/lib/wind/gen-errorlist.py
@@ -44,13 +44,13 @@ import rfc4518
import stringprep
if len(sys.argv) != 3:
- print "usage: %s rfc3454.txt out-dir" % sys.argv[0]
+ print("usage: %s rfc3454.txt out-dir" % sys.argv[0])
sys.exit(1)
tables = rfc3454.read(sys.argv[1])
t2 = rfc4518.read()
-for x in t2.iterkeys():
+for x in t2.keys():
tables[x] = t2[x]
error_list = stringprep.get_errorlist()
@@ -85,7 +85,7 @@ const struct error_entry _wind_errorlist_table[] = {
trans=[]
-for t in error_list.iterkeys():
+for t in error_list.keys():
for l in tables[t]:
m = re.search('^ *([0-9A-F]+)-([0-9A-F]+); *(.*) *$', l)
if m:
@@ -104,7 +104,7 @@ for x in trans:
(start, length, description, tables) = x
symbols = stringprep.symbols(error_list, tables)
if len(symbols) == 0:
- print "no symbol for %s" % description
+ print("no symbol for %s" % description)
sys.exit(1)
errorlist_c.file.write(" {0x%x, 0x%x, %s}, /* %s: %s */\n"
% (start, length, symbols, ",".join(tables), description))