From b334659db44942ca1457af4752751b1281da4948 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 7 Jul 2020 20:48:27 +0530 Subject: using PLIP v2.1.3 --- plip/exchange/report.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plip/exchange') diff --git a/plip/exchange/report.py b/plip/exchange/report.py index a559bf8..20f281e 100644 --- a/plip/exchange/report.py +++ b/plip/exchange/report.py @@ -97,9 +97,7 @@ class StructureReport: xml_declaration=True) else: output = et.tostring(self.xmlreport, pretty_print=True) - if config.RAWSTRING: - output = repr(output) - print(output) + print(output.decode('utf8')) def write_txt(self, as_string=False): """Write the TXT report""" @@ -108,8 +106,6 @@ class StructureReport: [f.write(textline + '\n') for textline in self.txtreport] else: output = '\n'.join(self.txtreport) - if config.RAWSTRING: - output = repr(output) print(output) -- cgit v1.2.3