Skip to content

Commit

Permalink
the cgi module was removed from Python3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
a-detiste committed Nov 15, 2024
1 parent bd25fc5 commit 6b25a73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions devtools/batchbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import string
import subprocess
import sys
import cgi
import html

class BuildDesc:
def __init__(self, prepend_envs=None, variables=None, build_type=None, generator=None):
Expand Down Expand Up @@ -195,12 +195,12 @@ def generate_html_report(html_report_path, builds):
for variable in variables:
build_types = sorted(build_types_by_variable[variable])
nb_build_type = len(build_types_by_variable[variable])
th_vars.append('<th colspan="%d">%s</th>' % (nb_build_type, cgi.escape(' '.join(variable))))
th_vars.append('<th colspan="%d">%s</th>' % (nb_build_type, html.escape(' '.join(variable))))
for build_type in build_types:
th_build_types.append('<th>%s</th>' % cgi.escape(build_type))
th_build_types.append('<th>%s</th>' % html.escape(build_type))
tr_builds = []
for generator in sorted(builds_by_generator):
tds = [ '<td>%s</td>\n' % cgi.escape(generator) ]
tds = [ '<td>%s</td>\n' % html.escape(generator) ]
for variable in variables:
build_types = sorted(build_types_by_variable[variable])
for build_type in build_types:
Expand Down

0 comments on commit 6b25a73

Please sign in to comment.