aboutsummaryrefslogtreecommitdiffstats
path: root/doxygen
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2020-03-01 01:42:28 -0500
committerDave Wallace <dwallacelf@gmail.com>2020-03-10 17:09:57 +0000
commitb55aec1c8e0c05520c47c3641c20684fc539f8a1 (patch)
tree134a4b2899eb6250e97327c7fb3860595a2bc432 /doxygen
parent7aef80b210752b1c9243799086fab0fe4df6272e (diff)
docs: doxygen fix siphon under python3
siphon used cgi.escape which was deprecated in python 3.2 and removed in python 3.8. Update the code to use html.escape instead. Type: fix Change-Id: I3192e3f69a4a95fe23cb24e1c29194ba5310932b Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'doxygen')
-rw-r--r--doxygen/siphon/parsers.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/doxygen/siphon/parsers.py b/doxygen/siphon/parsers.py
index 6fe8600d4b3..162205de4ca 100644
--- a/doxygen/siphon/parsers.py
+++ b/doxygen/siphon/parsers.py
@@ -10,7 +10,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import cgi, pyparsing as pp
+import html
+import pyparsing as pp
# Some useful primitives
ident = pp.Word(pp.alphas + "_", pp.alphas + pp.nums + "_")
@@ -102,7 +103,7 @@ class ParseFunctionMacroStmt(ParserFunctionMacro):
"""
Parser for our struct initializers which are composed from a
-function-like macro, equals sign, and then a normal C struct initalizer
+function-like macro, equals sign, and then a normal C struct initializer
block.
"""
class MacroInitializer(ParserFunctionMacro):
@@ -144,6 +145,6 @@ class MacroInitializer(ParserFunctionMacro):
}
for param in item[2]:
- r["value"][param[0]] = cgi.escape(param[1])
+ r["value"][param[0]] = html.escape(param[1])
return r