From 6baa27c7eb3a7a6d69c3be8d1c7c1a95d5a8d244 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Tue, 31 Aug 2021 10:17:07 +0200 Subject: [PATCH] Fix documentation_parser.py --- Documentation/doc/scripts/documentation_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/doc/scripts/documentation_parser.py b/Documentation/doc/scripts/documentation_parser.py index 69b256ecaa2..f1b02b8adfa 100644 --- a/Documentation/doc/scripts/documentation_parser.py +++ b/Documentation/doc/scripts/documentation_parser.py @@ -35,7 +35,7 @@ for i in range(0,len(compounds)): total_path=op.join(op.sep, root_path,filepath) if(op.isfile(total_path)): file_content = codecs.open(total_path, 'r', encoding='utf-8') - e = pq(file_content, parser="xml") + e = pq(file_content.read(), parser="xml") compoundnames=[p.text() for p in list(e('includes').items())] if(len(compoundnames) > 1 and compoundnames[0].find("Concept") != -1):