Fix documentation_parser.py

This commit is contained in:
Maxime Gimeno 2021-08-31 10:17:07 +02:00
parent 549e677d6a
commit 6baa27c7eb
1 changed files with 1 additions and 1 deletions

View File

@ -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):