From 865fe4e3c5f19fedda7b3007db55fa9e193e2e95 Mon Sep 17 00:00:00 2001 From: "Tanjeff-N. Moos" Date: Fri, 29 Jul 2022 21:31:17 +0200 Subject: [PATCH] sconsDoxy: Bugfix: Convert object to . In DoxyfileParse(), the 'file_contents' parameter is a object. Since the shlex.shlex() member doesn't accept objects, we convert it to a . --- doxygen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doxygen.py b/doxygen.py index d3ec9fac0..60e20e64c 100644 --- a/doxygen.py +++ b/doxygen.py @@ -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 = ""