diff --git a/docs/apibuild.py b/docs/apibuild.py index 17d14a0c55..832f04ab15 100755 --- a/docs/apibuild.py +++ b/docs/apibuild.py @@ -742,7 +742,7 @@ class CParser: return line def cleanupComment(self): - if type(self.comment) != type(""): + if not isinstance(self.comment, str): return # remove the leading * on multi-line comments lines = self.comment.splitlines(True) @@ -2223,9 +2223,8 @@ class docBuilder: output.write(" \n") try: for field in self.idx.structs[name].info: