sconsDoxy: Bugfix: Convert <bytes> object to <string>.

In DoxyfileParse(), the 'file_contents' parameter is a <bytes> object.
Since the shlex.shlex() member doesn't accept <bytes> objects, we
convert it to a <str>.
This commit is contained in:
Tanjeff-N. Moos 2022-07-29 21:31:17 +02:00 committed by Ichthyostega
parent 4cf4e09049
commit 865fe4e3c5

View file

@ -57,7 +57,7 @@ def DoxyfileParse(file_contents, conf_dir, data=None):
import shlex
lex = shlex.shlex(instream=file_contents, posix=True)
lex = shlex.shlex(instream=file_contents.decode("utf-8"), posix=True)
lex.wordchars += "*+./-:@"
lex.whitespace = lex.whitespace.replace("\n", "")
lex.escape = ""