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:
parent
4cf4e09049
commit
865fe4e3c5
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ def DoxyfileParse(file_contents, conf_dir, data=None):
|
||||||
|
|
||||||
import shlex
|
import shlex
|
||||||
|
|
||||||
lex = shlex.shlex(instream=file_contents, posix=True)
|
lex = shlex.shlex(instream=file_contents.decode("utf-8"), posix=True)
|
||||||
lex.wordchars += "*+./-:@"
|
lex.wordchars += "*+./-:@"
|
||||||
lex.whitespace = lex.whitespace.replace("\n", "")
|
lex.whitespace = lex.whitespace.replace("\n", "")
|
||||||
lex.escape = ""
|
lex.escape = ""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue