From 035a38b17710781bd890733660f0abc9a968f5cf Mon Sep 17 00:00:00 2001 From: "Tanjeff-N. Moos" Date: Sat, 30 Jul 2022 09:19:08 +0200 Subject: [PATCH] sconsDoxy: Better fix: get_contents() -> get_text_contents(). --- doxygen.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doxygen.py b/doxygen.py index 60e20e64c..579b77cf8 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.decode("utf-8"), posix=True) + lex = shlex.shlex(instream=file_contents, posix=True) lex.wordchars += "*+./-:@" lex.whitespace = lex.whitespace.replace("\n", "") lex.escape = "" @@ -181,7 +181,7 @@ def DoxySourceFiles(node, env): # go onto the sources list conf_dir = os.path.dirname(str(node)) - data = DoxyfileParse(node.get_contents(), conf_dir) + data = DoxyfileParse(node.get_text_contents(), conf_dir) if data.get("RECURSIVE", "NO") == "YES": recursive = True @@ -291,7 +291,8 @@ def DoxyEmitter(target, source, env): """Doxygen Doxyfile emitter""" doxy_fpath = str(source[0]) conf_dir = os.path.dirname(doxy_fpath) - data = DoxyfileParse(source[0].get_contents(), conf_dir) + + data = DoxyfileParse(source[0].get_text_contents(), conf_dir) targets = [] out_dir = data.get("OUTPUT_DIRECTORY", ".")